mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-04-28 22:31:25 +03:00
Remember scan ALL channels option across power cycles
This commit is contained in:
parent
ec5e9dde66
commit
9c7d6a38e5
@ -660,7 +660,7 @@ static void MR_NextChannel(void)
|
|||||||
if (RADIO_CheckValidChannel(chan1, false, 0))
|
if (RADIO_CheckValidChannel(chan1, false, 0))
|
||||||
{
|
{
|
||||||
gCurrentScanList = SCAN_NEXT_CHAN_SCANLIST1;
|
gCurrentScanList = SCAN_NEXT_CHAN_SCANLIST1;
|
||||||
gNextMrChannel = chan1;
|
gNextMrChannel = chan1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1079,14 +1079,14 @@ void APP_Update(void)
|
|||||||
if (gCurrentFunction == FUNCTION_INCOMING)
|
if (gCurrentFunction == FUNCTION_INCOMING)
|
||||||
APP_StartListening(gMonitor ? FUNCTION_MONITOR : FUNCTION_RECEIVE, true);
|
APP_StartListening(gMonitor ? FUNCTION_MONITOR : FUNCTION_RECEIVE, true);
|
||||||
else
|
else
|
||||||
FREQ_NextChannel();
|
FREQ_NextChannel(); // switch to next frequency
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (gCurrentCodeType == CODE_TYPE_OFF && gCurrentFunction == FUNCTION_INCOMING)
|
if (gCurrentCodeType == CODE_TYPE_OFF && gCurrentFunction == FUNCTION_INCOMING)
|
||||||
APP_StartListening(gMonitor ? FUNCTION_MONITOR : FUNCTION_RECEIVE, true);
|
APP_StartListening(gMonitor ? FUNCTION_MONITOR : FUNCTION_RECEIVE, true);
|
||||||
else
|
else
|
||||||
MR_NextChannel();
|
MR_NextChannel(); // switch to next channel
|
||||||
}
|
}
|
||||||
|
|
||||||
gScanPauseMode = false;
|
gScanPauseMode = false;
|
||||||
|
3
board.c
3
board.c
@ -687,7 +687,8 @@ void BOARD_EEPROM_Init(void)
|
|||||||
|
|
||||||
// 0F18..0F1F
|
// 0F18..0F1F
|
||||||
EEPROM_ReadBuffer(0x0F18, Data, 8);
|
EEPROM_ReadBuffer(0x0F18, Data, 8);
|
||||||
gEeprom.SCAN_LIST_DEFAULT = (Data[0] < 2) ? Data[0] : false;
|
// gEeprom.SCAN_LIST_DEFAULT = (Data[0] < 2) ? Data[0] : false;
|
||||||
|
gEeprom.SCAN_LIST_DEFAULT = (Data[0] < 3) ? Data[0] : false; // we now have 'all' channel scan option
|
||||||
for (i = 0; i < 2; i++)
|
for (i = 0; i < 2; i++)
|
||||||
{
|
{
|
||||||
const unsigned int j = 1 + (i * 3);
|
const unsigned int j = 1 + (i * 3);
|
||||||
|
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user