From e8f80e7e0bb9ecd4d253c63c7729b0a47b17001a Mon Sep 17 00:00:00 2001 From: Jochen Kiemes Date: Mon, 11 Jan 2021 23:53:05 +0100 Subject: [PATCH] fix compile error --- simavr/sim/avr_timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++) -- 2.39.5