aboutsummaryrefslogtreecommitdiffstats
path: root/fw/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'fw/types.c')
-rw-r--r--fw/types.c8
1 files changed, 4 insertions, 4 deletions
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++;
}
}