From 77d58eb8f50a34b375dd37dad8bfc800cd649b35 Mon Sep 17 00:00:00 2001 From: Krzysiek Egzmont Date: Tue, 24 Oct 2023 04:09:46 +0200 Subject: [PATCH] Stop scan with MENU button and accept scan result --- app/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/main.c b/app/main.c index 1dd3c1f..9e50ede 100644 --- a/app/main.c +++ b/app/main.c @@ -578,6 +578,11 @@ static void MAIN_Key_MENU(const bool bKeyPressed, const bool bKeyHeld) if (bFlag) { + if (gScanStateDir != SCAN_OFF) { + SCANNER_Stop(); + return; + } + gFlagRefreshSetting = true; gRequestDisplayScreen = DISPLAY_MENU; #ifdef ENABLE_VOICE