0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-28 14:21:25 +03:00

Dual-RX and T-VFO mimics the original firmware (TDR) and (WX).

This commit is contained in:
OneOfEleven 2023-10-07 00:23:00 +01:00
parent abce2921f7
commit fd3df27afe
4 changed files with 13 additions and 5 deletions

Binary file not shown.

Binary file not shown.

14
radio.c
View File

@ -944,15 +944,23 @@ void RADIO_PrepareTX(void)
gDualWatchCountdown_10ms = dual_watch_count_after_tx_10ms; gDualWatchCountdown_10ms = dual_watch_count_after_tx_10ms;
gScheduleDualWatch = false; gScheduleDualWatch = false;
#if 0
if (gRxVfoIsActive) if (gRxVfoIsActive)
{ // use the TX vfo { // use the TX vfo
gEeprom.RX_VFO = gEeprom.TX_VFO; gEeprom.RX_VFO = gEeprom.TX_VFO;
gRxVfo = &gEeprom.VfoInfo[gEeprom.TX_VFO]; gRxVfo = &gEeprom.VfoInfo[gEeprom.TX_VFO];
// gRxVfoIsActive = true;
gRxVfoIsActive = false; gRxVfoIsActive = false;
} }
gCurrentVfo = gRxVfo;
gCurrentVfo = &gEeprom.VfoInfo[gEeprom.TX_VFO]; #else
if (!gRxVfoIsActive)
{ // use the current RX vfo
gEeprom.RX_VFO = gEeprom.TX_VFO;
gRxVfo = &gEeprom.VfoInfo[gEeprom.TX_VFO];
gRxVfoIsActive = true;
}
gCurrentVfo = gRxVfo;
#endif
// let the user see that DW is not active '><' symbol // let the user see that DW is not active '><' symbol
gDualWatchActive = false; gDualWatchActive = false;

View File

@ -199,7 +199,7 @@ const char gSubMenu_CHAN[3][10] =
const char gSubMenu_XB[3][10] = const char gSubMenu_XB[3][10] =
{ {
"MAIN\nVFO", "RX\nVFO",
"UPPER\nVFO", "UPPER\nVFO",
"LOWER\nVFO" "LOWER\nVFO"
}; };