From c9ffc868dc2e8dd923510a3572943fd589e7c92b Mon Sep 17 00:00:00 2001 From: Christian Kroll Date: Mon, 6 Oct 2014 19:48:15 +0200 Subject: [PATCH] borg_gw_borg16.c: trigger watchdog 134 times per sec. (instead of 6465) --- src/borg_hw/borg_hw_borg16.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/borg_hw/borg_hw_borg16.c b/src/borg_hw/borg_hw_borg16.c index 7c81baa..9a65830 100644 --- a/src/borg_hw/borg_hw_borg16.c +++ b/src/borg_hw/borg_hw_borg16.c @@ -155,13 +155,13 @@ ISR(TIMER0_ISR) { static unsigned char plane = 0; static unsigned char row = 0; - // reset watchdog - wdt_reset(); - // increment both row and plane if (++plane == NUMPLANE) { plane = 0; if (++row == NUM_ROWS) { + // reset watchdog + wdt_reset(); + row = 0; } nextrow(row);