Skip to content

Commit

Permalink
Dual-RX/2nd-RX updated
Browse files Browse the repository at this point in the history
  • Loading branch information
OneOfEleven committed Oct 7, 2023
1 parent 732028b commit 55d5dbe
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
10 changes: 7 additions & 3 deletions app/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ int MENU_GetLimits(uint8_t Cursor, int32_t *pMin, int32_t *pMax)

case MENU_TDR:
*pMin = 0;
*pMax = ARRAY_SIZE(gSubMenu_CHAN) - 1;
// *pMax = ARRAY_SIZE(gSubMenu_TDR) - 1;
*pMax = ARRAY_SIZE(gSubMenu_OFF_ON) - 1;
break;

case MENU_XB:
Expand Down Expand Up @@ -533,7 +534,9 @@ void MENU_AcceptSetting(void)
break;

case MENU_TDR:
gEeprom.DUAL_WATCH = gSubMenuSelection;
// gEeprom.DUAL_WATCH = gSubMenuSelection;
gEeprom.DUAL_WATCH = (gSubMenuSelection > 0) ? 1 + gEeprom.TX_VFO : DUAL_WATCH_OFF;

gFlagReconfigureVfos = true;
gUpdateStatus = true;
break;
Expand Down Expand Up @@ -980,7 +983,8 @@ void MENU_ShowCurrentSetting(void)
break;

case MENU_TDR:
gSubMenuSelection = gEeprom.DUAL_WATCH;
// gSubMenuSelection = gEeprom.DUAL_WATCH;
gSubMenuSelection = (gEeprom.DUAL_WATCH == DUAL_WATCH_OFF) ? 0 : 1;
break;

case MENU_XB:
Expand Down
Binary file modified firmware.bin
Binary file not shown.
Binary file modified firmware.packed.bin
Binary file not shown.
7 changes: 4 additions & 3 deletions ui/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,11 @@ const char gSubMenu_TOT[11][7] =
"15 min"
};

const char gSubMenu_CHAN[3][10] =
const char gSubMenu_TDR[3][10] =
{
"OFF",
"LOWER\nVFO",
"UPPER\nVFO",
"LOWER\nVFO"
};

const char gSubMenu_XB[3][10] =
Expand Down Expand Up @@ -751,7 +751,8 @@ void UI_DisplayMenu(void)
break;

case MENU_TDR:
strcpy(String, gSubMenu_CHAN[gSubMenuSelection]);
// strcpy(String, gSubMenu_TDR[gSubMenuSelection]);
strcpy(String, gSubMenu_OFF_ON[gSubMenuSelection]);
break;

case MENU_XB:
Expand Down
2 changes: 1 addition & 1 deletion ui/menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ extern const char gSubMenu_W_N[2][7];
extern const char gSubMenu_OFF_ON[2][4];
extern const char gSubMenu_SAVE[5][4];
extern const char gSubMenu_TOT[11][7];
extern const char gSubMenu_CHAN[3][10];
extern const char gSubMenu_TDR[3][10];
extern const char gSubMenu_XB[3][10];
#ifdef ENABLE_VOICE
extern const char gSubMenu_VOICE[3][4];
Expand Down

0 comments on commit 55d5dbe

Please sign in to comment.