From: hovercraft-github Date: Tue, 8 Nov 2016 02:15:36 +0000 (+0800) Subject: Timers: fixes #177 (interrupt flags reset failure) X-Git-Tag: v1.4~4^2 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=ca26b609194ea71b06e6f7c247208d4339f181dd;p=sx%2Fsimavr.git Timers: fixes #177 (interrupt flags reset failure) --- 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);