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 e832fa0..fdce167 100644
--- a/fw/eeprom.c
+++ b/fw/eeprom.c
@@ -118,7 +118,7 @@ eepromWrite(U16 addr, U8 *data, U8 size) {
while (size--) {
(void)spiTx(*data);
data++;
- addU16(&addr, 1u);
+ addr = addU16U8(addr, 1u);
// Check if write crosses page boundary
if (isPageStart(addr) && size) {