diff options
Diffstat (limited to 'src/arch/msp430fr5994lp/driver')
-rw-r--r-- | src/arch/msp430fr5994lp/driver/counter.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/msp430fr5994lp/driver/counter.cc b/src/arch/msp430fr5994lp/driver/counter.cc index daa7a2d..d69d844 100644 --- a/src/arch/msp430fr5994lp/driver/counter.cc +++ b/src/arch/msp430fr5994lp/driver/counter.cc @@ -6,7 +6,7 @@ Counter counter; __attribute__((interrupt(TIMER2_A1_VECTOR))) void handle_timer2_overflow() { if (TA2IV == 0x0e) { - if (counter.overflow < 255) { + if (counter.overflow < 65535) { counter.overflow++; } } |