aboutsummaryrefslogtreecommitdiffstats
path: root/fw/eeprom.c
diff options
context:
space:
mode:
Diffstat (limited to 'fw/eeprom.c')
-rw-r--r--fw/eeprom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fw/eeprom.c b/fw/eeprom.c
index ce8aed7..686be40 100644
--- a/fw/eeprom.c
+++ b/fw/eeprom.c
@@ -90,7 +90,7 @@ eepromWrite(U16 addr, U8 *data, U8 size) {
while (size--) {
(void)spiTx(*data);
data++;
- incU16(&addr);
+ addU16(&addr, 1u);
// Check if write crosses page boundary
if (isPageStart(addr) && size) {