aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-11-17 16:48:46 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-11-17 16:48:46 +0100
commit283f7affc8688c0b7622aff5e064def291e03419 (patch)
treee843ed2fed3448fe20a0ccbf88385fc4c263fee1
parentbc8dbcc505b805cbbce07971afe87727e7dd522a (diff)
downloadglutte-batteries-283f7affc8688c0b7622aff5e064def291e03419.tar.gz
glutte-batteries-283f7affc8688c0b7622aff5e064def291e03419.tar.bz2
glutte-batteries-283f7affc8688c0b7622aff5e064def291e03419.zip
Use correct ISR for timer
-rw-r--r--sw/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/main.cpp b/sw/main.cpp
index 3a6b63c..06ccc87 100644
--- a/sw/main.cpp
+++ b/sw/main.cpp
@@ -136,7 +136,7 @@ static timer_t system_timer;
* Datasheet 11.9.1, example code from wdt.h */
uint8_t mcusr_mirror __attribute__ ((section (".noinit")));
-ISR(TIMER0_COMPA_vect)
+ISR(TIMER0_OVF_vect)
{
system_timer += timer_t{0, TIMER_TICK_INTERVAL_US};
}