From ca26b609194ea71b06e6f7c247208d4339f181dd Mon Sep 17 00:00:00 2001 From: hovercraft-github Date: Tue, 8 Nov 2016 10:15:36 +0800 Subject: [PATCH] Timers: fixes #177 (interrupt flags reset failure) --- simavr/sim/avr_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simavr/sim/avr_timer.c b/simavr/sim/avr_timer.c index f82e096..a1c2b4f 100644 --- a/simavr/sim/avr_timer.c +++ b/simavr/sim/avr_timer.c @@ -715,7 +715,7 @@ avr_timer_write_pending( cp[compi] = avr_regbit_get(avr, p->comp[compi].interrupt.raised); // write the value - avr_core_watch_write(avr, addr, v); + // avr_core_watch_write(avr, addr, v); // This raises flags instead of clearing it. // clear any interrupts & flags avr_clear_interrupt_if(avr, &p->overflow, ov); -- 2.39.5