mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Fix limit
This commit is contained in:
1 parent
5ea2f91d73
commit
f4acafb541
1 file changed
+4
-1
+4
-1
@@ -260,7 +260,10 @@ gEeprom.FreqChannel[1] = IS_FREQ_CHANNEL(Data16[5]) ? Data16[5] : (FREQ_CHANNE
|
||||
// 0F18..0F1F
|
||||
PY25Q16_ReadBuffer(0x00A130, Data, 8);
|
||||
|
||||
gEeprom.SCAN_LIST_DEFAULT = ((Data[0] & 0x7F) <= (MR_CHANNELS_LIST + 1)) ? (Data[0] & 0x7F) : 0;
|
||||
gEeprom.SCAN_LIST_DEFAULT =
|
||||
(((Data[0] & 0x7F) >= 1) && ((Data[0] & 0x7F) <= (MR_CHANNELS_LIST + 1)))
|
||||
? (Data[0] & 0x7F)
|
||||
: 1;
|
||||
gEeprom.SCAN_LIST_ENABLED = (Data[0] >> 7) & 0x01;
|
||||
|
||||
gEeprom.SCANLIST_PRIORITY_CH[0] =
|
||||
|
||||
Reference in new issue
Block a user