Skip to content

Commit

Permalink
save flash
Browse files Browse the repository at this point in the history
  • Loading branch information
reald committed Sep 27, 2024
1 parent 27d4b8c commit f44b6ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/app.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
{
Expand Down
10 changes: 6 additions & 4 deletions ui/ardf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit f44b6ff

Please sign in to comment.