From f44b6ff6f1ca373e44c3725cc71dcee64fa46576 Mon Sep 17 00:00:00 2001 From: Dennis Real Date: Fri, 27 Sep 2024 20:26:40 +0200 Subject: [PATCH] save flash --- app/app.c | 2 +- ui/ardf.c | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/app.c b/app/app.c index 930f8511..8d9a3556 100644 --- a/app/app.c +++ b/app/app.c @@ -1653,7 +1653,7 @@ static void ProcessKey(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld) } #ifdef ENABLE_ARDF else if ( gSetting_ARDFEnable - && gEeprom.KEY_LOCK +// save flash && gEeprom.KEY_LOCK && (Key == KEY_UP || Key == KEY_DOWN) ) { diff --git a/ui/ardf.c b/ui/ardf.c index 3eff75bf..e5d52f91 100644 --- a/ui/ardf.c +++ b/ui/ardf.c @@ -174,28 +174,30 @@ void UI_DisplayARDF(void) UI_PrintStringSmallBold(gModulationStr[mod], 12, 36, 2); // modulation + char *bw = ""; switch ( vfoInfo->CHANNEL_BANDWIDTH ) { case BANDWIDTH_NARROW: - UI_PrintStringSmallBold("N", 42, 58, 2); + bw="N"; break; case BANDWIDTH_U2K5: - UI_PrintStringSmallBold("N-", 42, 58, 2); + bw="N-"; break; case BANDWIDTH_U1K7: - UI_PrintStringSmallBold("U-", 42, 58, 2); + bw="U-"; break; default: - UI_PrintStringSmallBold("W", 42, 58, 2); + bw="W"; break; } + UI_PrintStringSmallBold(bw, 42, 58, 2); UI_DisplayARDF_FreqCh();