From: Jochen Kiemes Date: Mon, 11 Jan 2021 22:53:05 +0000 (+0100) Subject: fix compile error X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=e8f80e7e0bb9ecd4d253c63c7729b0a47b17001a;p=sx%2Fsimavr.git fix compile error --- diff --git a/simavr/sim/avr_timer.c b/simavr/sim/avr_timer.c index 66a47ae..827261d 100644 --- a/simavr/sim/avr_timer.c +++ b/simavr/sim/avr_timer.c @@ -754,9 +754,9 @@ avr_timer_write_pending( // avr_core_watch_write(avr, addr, v); // This raises flags instead of clearing it. // clear any interrupts & flags - if (avr_regbit_from_value(avr, p->overflow, v)) + if (avr_regbit_from_value(avr, p->overflow.raised, v)) avr_clear_interrupt_if(avr, &p->overflow, ov); - if (avr_regbit_from_value(avr, p->icr, v)) + if (avr_regbit_from_value(avr, p->icr.raised, v)) avr_clear_interrupt_if(avr, &p->icr, ic); for (int compi = 0; compi < AVR_TIMER_COMP_COUNT; compi++)