mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-07-23 23:11:01 -04:00
minor changes
warning: comparison is always true due to limited range of data type and add parentheses
This commit is contained in:
parent
a0af475c31
commit
96348de145
2 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue