From 366330d3943ec4e066197a8d034d90caf8422a1d Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sat, 6 Sep 2025 13:24:11 -0400 Subject: fw: handle "w" write eeprom command --- fw/types.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fw/types.c') diff --git a/fw/types.c b/fw/types.c index c18392e..a6c2411 100644 --- a/fw/types.c +++ b/fw/types.c @@ -5,9 +5,9 @@ #include "types.h" void -incU16(U16 *x) { - x->lo++; - if (x->lo == 0u) { - x->hi++; +addU16(U16 *a, U8 b) { + a->lo += b; + if (STATUSbits.C) { + a->hi++; } } -- cgit v1.2.3