aboutsummaryrefslogtreecommitdiffstats
path: root/fw/eeprom.c
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-09-06 13:24:11 -0400
committerSam Anthony <sam@samanthony.xyz>2025-09-06 13:24:11 -0400
commit366330d3943ec4e066197a8d034d90caf8422a1d (patch)
treeeef4e0cc7882f77be931b81c8b5bb4c91dbcc0aa /fw/eeprom.c
parentdf3ed451bf11d40e6369b0333fef92c536c57b4d (diff)
downloadcan-gauge-interface-366330d3943ec4e066197a8d034d90caf8422a1d.zip
fw: handle "w" write eeprom command
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) {