minor changes

warning: comparison is always true due to limited range of data type
and add parentheses
This commit is contained in:
karamo 2022-01-13 22:18:18 +01:00
parent a0af475c31
commit 96348de145
2 changed files with 8 additions and 8 deletions

View file

@ -512,9 +512,9 @@ 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) {
eeprom_update(eeprom_addr(addr), byte);
void eeprom_write(int addr, uint8_t vbyte) {
if (!eeprom_info_locked() && (addr >= 0) && (addr < EEPROM_RESERVED)) {
eeprom_update(eeprom_addr(addr), vbyte);
} else {
kiss_indicate_error(ERROR_EEPROM_LOCKED);
}