n21: send value of door sensor every minute

this will allow us to determine the best value for a adc limit to detect
open/closed windows and doors.
This commit is contained in:
Martin Preuss
2025-06-15 17:47:34 +02:00
parent 8a43bc252f
commit 1533f82ec4

View File

@@ -173,7 +173,6 @@ onMessageReceived:
onEvery100ms:
onEverySecond:
onEveryMinute:
onEveryHour:
onEveryDay:
ret
@@ -181,6 +180,14 @@ onEveryDay:
onEveryMinute:
lds r16, tcrt1kLastValue
ldi r17, VALUE_ID_ADC
ldi r22, AQHOME_VALUETYPE_UNKNOWN ; VALUE TYPE
rjmp Main_Send8BitValueReport
; ---------------------------------------------------------------------------
; @routine onEveryLoop
;