FIX #129: Bug in radio initialization after reset.

This commit is contained in:
Krzysiek Egzmont
2023-11-22 20:41:38 +01:00
parent fb30ec8c86
commit 0ce7d7bdc3
2 changed files with 18 additions and 4 deletions

View File

@@ -727,6 +727,13 @@ void BOARD_EEPROM_Init(void)
// 0D60..0E27
EEPROM_ReadBuffer(0x0D60, gMR_ChannelAttributes, sizeof(gMR_ChannelAttributes));
for(uint16_t i = 0; i < sizeof(gMR_ChannelAttributes); i++) {
ChannelAttributes_t *att = &gMR_ChannelAttributes[i];
if(att->__val == 0xff){
att->__val = 0;
att->band = 0xf;
}
}
// 0F30..0F3F
EEPROM_ReadBuffer(0x0F30, gCustomAesKey, sizeof(gCustomAesKey));