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:
@@ -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
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user