diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-09-06 13:24:11 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-09-06 13:24:11 -0400 |
| commit | 366330d3943ec4e066197a8d034d90caf8422a1d (patch) | |
| tree | eef4e0cc7882f77be931b81c8b5bb4c91dbcc0aa /fw/eeprom.c | |
| parent | df3ed451bf11d40e6369b0333fef92c536c57b4d (diff) | |
| download | can-gauge-interface-366330d3943ec4e066197a8d034d90caf8422a1d.zip | |
fw: handle "w" write eeprom command
Diffstat (limited to 'fw/eeprom.c')
| -rw-r--r-- | fw/eeprom.c | 2 |
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) { |