From 656383494e1f827a7b316200928024f4f1bd4613 Mon Sep 17 00:00:00 2001 From: Pirata Date: Fri, 3 Jan 2025 18:54:33 -0300 Subject: [PATCH] RF Scan/Copy "Main Menu" option fix --- src/modules/rf/rf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/rf/rf.cpp b/src/modules/rf/rf.cpp index a056a27d..eab16d48 100644 --- a/src/modules/rf/rf.cpp +++ b/src/modules/rf/rf.cpp @@ -1632,14 +1632,14 @@ void rf_scan_copy() { if(bruceConfig.devMode && !OnlyRAW) options.push_back({ "Only RAW", [&]() { ReadRAW=true; OnlyRAW=true; } }); else if(bruceConfig.devMode && OnlyRAW) options.push_back({ "RAW+Decode", [&]() { ReadRAW=true; OnlyRAW=false; } }); options.push_back({ "Close Menu", [&]() { option =-1; } }); - options.push_back({ "Main Menu", [&]() { returnToMenu=true; } }); + options.push_back({ "Main Menu", [&]() { option =-2; } }); loopOptions(options); if(option==-1) goto RestartScan; - if(returnToMenu) goto END; + if(option==-2) { returnToMenu=true; goto END; } if(option ==0 ) { // Replay signal ReplaySignal: