nfc/lfrfid emulation abort after 5min disable if debug on

This commit is contained in:
Methodius
2024-01-31 20:14:05 +09:00
committed by MX
parent fe05c678c4
commit 4573046df8
2 changed files with 6 additions and 2 deletions

View File

@@ -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);
}