From 283f7affc8688c0b7622aff5e064def291e03419 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 17 Nov 2019 16:48:46 +0100 Subject: Use correct ISR for timer --- sw/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw') 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}; } -- cgit v1.2.3