Commit ca26b609194ea71b06e6f7c247208d4339f181dd
authorhovercraft-github <hovercraft@yandex.ru>
Tue, 8 Nov 2016 02:15:36 +0000 (10:15 +0800)
committerhovercraft-github <hovercraft@yandex.ru>
Tue, 8 Nov 2016 02:15:36 +0000 (10:15 +0800)
simavr/sim/avr_timer.c

index f82e096e3183187063ce267e580ac520ee9b67de..a1c2b4f96ef771394a66d3ca2d07c4f80dd260b5 100644 (file)
@@ -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);