Skip to content

Commit

Permalink
Display LSB/USB, RX, TX instead of SSB, VO, SQ
Browse files Browse the repository at this point in the history
  • Loading branch information
reppad committed Nov 23, 2023
1 parent 55c49a7 commit e721d65
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions ui/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,20 +423,17 @@ void UI_DrawExtra(uint8_t Mode, uint8_t gModulationType, uint8_t Vfo)
switch (Mode) {
case 0:
gColorForeground = COLOR_BLUE;
if(gModulationType < 2)
UI_DrawSmallString(2, Y, gModulationType ? " AM" : " FM", 3);
else
UI_DrawSmallString(2, Y, "SSB", 3);
break;
UI_DrawSmallString(2, Y, gModulationType == 0 ? " FM" : gModulationType == 1 ? " AM" : gModulationType == 2 ? "LSB" : "USB", 3);
break;

case 1: // TX mode
gColorForeground = COLOR_RED;
UI_DrawSmallString(2, Y, " VO", 3);
UI_DrawSmallString(2, Y, " TX", 3);
break;

case 2: // RX mode
gColorForeground = COLOR_BLUE;
UI_DrawSmallString(2, Y, " SQ", 3);
UI_DrawSmallString(2, Y, " RX", 3);
break;
}
}
Expand Down

0 comments on commit e721d65

Please sign in to comment.