summaryrefslogtreecommitdiff
path: root/src/arch/msp430fr5994lp/driver/counter.cc
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-10-23 13:35:02 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-10-23 13:35:02 +0200
commitd4f38c14cd22131ba20e3ff5d30fcc43c6fc5b2f (patch)
tree4311baee825019bad488b32f97837449c31e9c85 /src/arch/msp430fr5994lp/driver/counter.cc
parentc03bff934c656cf0d0d986cee75f002aeab5634e (diff)
use 16bit uint for msp430fr overflow counter
Diffstat (limited to 'src/arch/msp430fr5994lp/driver/counter.cc')
-rw-r--r--src/arch/msp430fr5994lp/driver/counter.cc2
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++;
}
}