mirror of
https://github.com/DualTachyon/uv-k5-firmware.git
synced 2025-02-11 17:41:11 +08:00
Fixed a crash with -Os on some compilers.
This commit is contained in:
parent
bce35ec297
commit
615d27a625
4
board.c
4
board.c
@ -752,9 +752,7 @@ void BOARD_EEPROM_Init(void)
|
||||
EEPROM_ReadBuffer(0x0F30, gCustomPasswordKey, 16);
|
||||
|
||||
for (i = 0; i < 4; i++) {
|
||||
const uint32_t *pKey = (const uint32_t *)gCustomPasswordKey;
|
||||
|
||||
if (pKey[i] != 0xFFFFFFFFU) {
|
||||
if (gCustomPasswordKey[i] != 0xFFFFFFFFU) {
|
||||
bIsCheckExistingPassword = true;
|
||||
return;
|
||||
}
|
||||
|
2
misc.c
2
misc.c
@ -27,7 +27,7 @@ bool gSetting_350EN;
|
||||
bool gSetting_ScrambleEnable;
|
||||
uint8_t gSetting_F_LOCK;
|
||||
|
||||
uint8_t gCustomPasswordKey[16];
|
||||
uint32_t gCustomPasswordKey[4];
|
||||
|
||||
bool bIsCheckExistingPassword;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user