From e1bc60b7eb99b62931986fdae99be635404bf8d2 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Wed, 21 Feb 2024 04:01:21 +0300 Subject: [PATCH] Revert "nfc/lfrfid emulation abort after 5min disable if debug on" This reverts commit 4573046df8b6045dfa669c5d2d6bcd911029ef03. --- applications/main/lfrfid/scenes/lfrfid_scene_emulate.c | 4 +--- applications/main/nfc/scenes/nfc_scene_emulate.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/applications/main/lfrfid/scenes/lfrfid_scene_emulate.c b/applications/main/lfrfid/scenes/lfrfid_scene_emulate.c index 54d72f9b0..b729f4de0 100644 --- a/applications/main/lfrfid/scenes/lfrfid_scene_emulate.c +++ b/applications/main/lfrfid/scenes/lfrfid_scene_emulate.c @@ -33,9 +33,7 @@ void lfrfid_scene_emulate_on_enter(void* context) { timer_auto_exit = furi_timer_alloc(lfrfid_scene_emulate_popup_callback, FuriTimerTypeOnce, app); - - if(!furi_hal_rtc_is_flag_set(FuriHalRtcFlagDebug)) - furi_timer_start(timer_auto_exit, LFRFID_EMULATION_TIME_MAX_MS); + furi_timer_start(timer_auto_exit, LFRFID_EMULATION_TIME_MAX_MS); view_dispatcher_switch_to_view(app->view_dispatcher, LfRfidViewPopup); } diff --git a/applications/main/nfc/scenes/nfc_scene_emulate.c b/applications/main/nfc/scenes/nfc_scene_emulate.c index 7fd94390b..0f178f463 100644 --- a/applications/main/nfc/scenes/nfc_scene_emulate.c +++ b/applications/main/nfc/scenes/nfc_scene_emulate.c @@ -20,9 +20,7 @@ void nfc_scene_emulate_on_enter(void* context) { timer_auto_exit = furi_timer_alloc(nfc_scene_emulate_timer_callback, FuriTimerTypeOnce, instance); - - if(!furi_hal_rtc_is_flag_set(FuriHalRtcFlagDebug)) - furi_timer_start(timer_auto_exit, NFC_EMULATION_TIME_MAX_MS); + furi_timer_start(timer_auto_exit, NFC_EMULATION_TIME_MAX_MS); } bool nfc_scene_emulate_on_event(void* context, SceneManagerEvent event) {