From 54301fed44cb84b4f7b20756cedf7c893b60a856 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Sat, 13 May 2023 01:13:28 +0200 Subject: [PATCH] avr/reed: moved notification source to REED_Run. This make the node send the new status almost immediately after change. --- avr/att84_temp1.asm | 2 +- avr/modules/reed/main.asm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/avr/att84_temp1.asm b/avr/att84_temp1.asm index a8ab8bc..daa25ce 100644 --- a/avr/att84_temp1.asm +++ b/avr/att84_temp1.asm @@ -367,7 +367,7 @@ timerList: .dw sramTimerCny70SendAdc, sendAdc, TIMER_FLAGS_IF_ADDR, 30 ; every 30s #endif #ifdef MODULES_REED - .dw sramTimerReedCheck, REED_Timer, TIMER_FLAGS_IF_ADDR, 1 ; every 1s +; .dw sramTimerReedCheck, REED_Timer, TIMER_FLAGS_IF_ADDR, 1 ; every 1s #endif .dw 0 ; end of list diff --git a/avr/modules/reed/main.asm b/avr/modules/reed/main.asm index fdc1eb2..ee63002 100644 --- a/avr/modules/reed/main.asm +++ b/avr/modules/reed/main.asm @@ -146,8 +146,8 @@ REED_Fini: REED_Run: - clc ; debug - ret ; debug +; clc ; debug +; ret ; debug push r15 in r15, SREG cli