From d97d2ac08fe41213b9cb1f5b22ffc4aafe793324 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Sat, 17 May 2025 10:44:48 +0200 Subject: [PATCH] fixed a bug. --- avr/apps/reportsensors/main.asm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/avr/apps/reportsensors/main.asm b/avr/apps/reportsensors/main.asm index 94a7dd8..6f4751e 100644 --- a/avr/apps/reportsensors/main.asm +++ b/avr/apps/reportsensors/main.asm @@ -53,11 +53,12 @@ AppReportSensors_Fini: ; AppReportSensors_OnEverySecond: - in r15, SREG push r15 + in r15, SREG cli rcall AppReportSensors_OnEverySecond_noIrqs - out SREG, r15 + out SREG, r15 + pop r15 ret AppReportSensors_OnEverySecond_noIrqs: lds r16, reportSensorTimer