mirror of
https://github.com/silenty4ng/uv-k5-firmware-chinese-lts
synced 2025-01-15 06:45:05 +00:00
FM保存地址修改漏提交
* FM保存地址修改漏提交 --------- Co-authored-by: guanzi008 <245205080@侵qq.com> Co-authored-by: 奚玉帆 <135425477+silenty4ng@users.noreply.github.com>
This commit is contained in:
parent
2e114a1021
commit
83dbbabcee
1 changed files with 4 additions and 4 deletions
|
@ -106,14 +106,14 @@ void SETTINGS_InitEEPROM(void)
|
|||
}
|
||||
|
||||
// 0E40..0E67
|
||||
//0x1FFF0..0x20000
|
||||
//0x1FFC0..0x20000
|
||||
// 根据 ENABLE_CHINESE_FULL 宏的值来定义数组长度
|
||||
#if ENABLE_CHINESE_FULL != 4
|
||||
// 使用 0E40
|
||||
EEPROM_ReadBuffer(0x0E40, gFM_Channels, sizeof(gFM_Channels));
|
||||
#else
|
||||
// 使用 1E451
|
||||
EEPROM_ReadBuffer(0x1FFF0 , gFM_Channels, sizeof(gFM_Channels));
|
||||
EEPROM_ReadBuffer(0x1FFC0 , gFM_Channels, sizeof(gFM_Channels));
|
||||
#endif
|
||||
// EEPROM_ReadBuffer(0x0E40, gFM_Channels, sizeof(gFM_Channels));
|
||||
FM_ConfigureChannelState();
|
||||
|
@ -442,7 +442,7 @@ void SETTINGS_FactoryReset(bool bIsAll)
|
|||
#if ENABLE_CHINESE_FULL != 4
|
||||
!(i >= 0x0E40 && i < 0x0E70) && // FM Channels
|
||||
#else
|
||||
!(i >= 0x1FFF0 && i < 0x20000) && // FM Channels
|
||||
!(i >= 0x1FFC0 && i < 0x20000) && // FM Channels
|
||||
#endif
|
||||
!(i >= 0x0E88 && i < 0x0E90) // FM settings
|
||||
))
|
||||
|
@ -495,7 +495,7 @@ void SETTINGS_SaveFM(void)
|
|||
|
||||
#else
|
||||
for (i = 0; i < 8; i++)
|
||||
EEPROM_WriteBuffer(0x1FFF0 + (i * 8), &gFM_Channels[i * 4],8);
|
||||
EEPROM_WriteBuffer(0x1FFC0 + (i * 8), &gFM_Channels[i * 4],8);
|
||||
|
||||
// EEPROM_WriteBuffer(0x0E40 + (i * 8), &gFM_Channels[i * 4],8);
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue