Skip to content

Commit

Permalink
nfc/lfrfid emulation abort after 5min disable if debug on
Browse files Browse the repository at this point in the history
  • Loading branch information
Leptopt1los authored and xMasterX committed Jan 31, 2024
1 parent fe05c67 commit 4573046
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion applications/main/lfrfid/scenes/lfrfid_scene_emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ void lfrfid_scene_emulate_on_enter(void* context) {

timer_auto_exit =
furi_timer_alloc(lfrfid_scene_emulate_popup_callback, FuriTimerTypeOnce, app);
furi_timer_start(timer_auto_exit, LFRFID_EMULATION_TIME_MAX_MS);

if(!furi_hal_rtc_is_flag_set(FuriHalRtcFlagDebug))
furi_timer_start(timer_auto_exit, LFRFID_EMULATION_TIME_MAX_MS);

view_dispatcher_switch_to_view(app->view_dispatcher, LfRfidViewPopup);
}
Expand Down
4 changes: 3 additions & 1 deletion applications/main/nfc/scenes/nfc_scene_emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ void nfc_scene_emulate_on_enter(void* context) {

timer_auto_exit =
furi_timer_alloc(nfc_scene_emulate_timer_callback, FuriTimerTypeOnce, instance);
furi_timer_start(timer_auto_exit, NFC_EMULATION_TIME_MAX_MS);

if(!furi_hal_rtc_is_flag_set(FuriHalRtcFlagDebug))
furi_timer_start(timer_auto_exit, NFC_EMULATION_TIME_MAX_MS);
}

bool nfc_scene_emulate_on_event(void* context, SceneManagerEvent event) {
Expand Down

0 comments on commit 4573046

Please sign in to comment.