borg_gw_borg16.c: trigger watchdog 134 times per sec. (instead of 6465)
This commit is contained in:
parent
fa3c01d0c2
commit
c9ffc868dc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue