This commit is contained in:
Mark Qvist 2022-01-14 11:12:11 +01:00
parent 8b7d4611e0
commit 3ca92e892d
1 changed files with 1 additions and 1 deletions

View File

@ -513,7 +513,7 @@ void eeprom_update(int mapped_addr, uint8_t byte) {
}
void eeprom_write(uint8_t addr, uint8_t byte) {
if (!eeprom_info_locked() && (addr >= 0) && (addr < EEPROM_RESERVED)) {
if (!eeprom_info_locked() && addr >= 0 && addr < EEPROM_RESERVED) {
eeprom_update(eeprom_addr(addr), byte);
} else {
kiss_indicate_error(ERROR_EEPROM_LOCKED);