Skip to content

Commit

Permalink
Fix timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
acegoal07 committed Dec 14, 2023
1 parent 17c86f7 commit 4728659
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nfc_playlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ void nfc_playlist_scene_on_enter_popup_emulating(void* context) {
while(stream_read_line(stream, line)) {

char* str = (char*)furi_string_get_cstr(line);

popup_set_context(app->popup, app);
popup_set_header(app->popup, "Emulating", 64, 10, AlignCenter, AlignTop);
popup_set_text(app->popup, str, 64, 30, AlignCenter, AlignTop);
Expand Down Expand Up @@ -211,6 +211,7 @@ void nfc_playlist_view_dispatcher_init(NfcPlaylist* app) {
FURI_LOG_D(TAG, "nfc_playlist_view_dispatcher_init allocating views");
app->menu = submenu_alloc();
app->popup = popup_alloc();
app->emulate_timeout = 2000;

// assign callback that pass events from views to the scene manager
FURI_LOG_D(TAG, "nfc_playlist_view_dispatcher_init setting callbacks");
Expand Down Expand Up @@ -276,8 +277,6 @@ int32_t nfc_playlist_main(void* p) {
FURI_LOG_D(TAG, "Starting dispatcher...");
view_dispatcher_run(app->view_dispatcher);

app->emulate_timeout = 2000;

// free all memory
FURI_LOG_I(TAG, "Test app finishing...");
furi_record_close(RECORD_GUI);
Expand Down

0 comments on commit 4728659

Please sign in to comment.