Skip to content

Commit aaa7858

Browse files
committed
Adds error light
1 parent 5971c2a commit aaa7858

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

scences/file_exists_error.c

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ void nfc_playlist_file_exists_error_scene_on_enter(void* context) {
88
popup_set_text(nfc_playlist->popup, "The file already exists, Press back to try again", 64, 50, AlignCenter, AlignTop);
99
popup_set_context(nfc_playlist->popup, nfc_playlist);
1010
view_dispatcher_switch_to_view(nfc_playlist->view_dispatcher, NfcPlaylistView_FileExistsError);
11+
start_blinking(nfc_playlist->notification, NfcPlaylistLedState_Error);
1112
}
1213

1314
bool nfc_playlist_file_exists_error_scene_on_event(void* context, SceneManagerEvent event) {
@@ -18,6 +19,7 @@ bool nfc_playlist_file_exists_error_scene_on_event(void* context, SceneManagerEv
1819

1920
void nfc_playlist_file_exists_error_scene_on_exit(void* context) {
2021
NfcPlaylist* nfc_playlist = context;
22+
stop_blinking(nfc_playlist->notification);
2123
popup_reset(nfc_playlist->popup);
2224
scene_manager_previous_scene(nfc_playlist->scene_manager);
2325
}

scences/file_exists_error.h

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <gui/modules/popup.h>
55
#include <gui/view_dispatcher.h>
66
#include <gui/scene_manager.h>
7+
#include <lib/led/nfc_playlist_led.h>
78

89
void nfc_playlist_file_select_scene_on_enter(void* context);
910
bool nfc_playlist_file_select_scene_on_event(void* context, SceneManagerEvent event);

0 commit comments

Comments
 (0)