avr: use activity LED for door and motion sensors.

This commit is contained in:
Martin Preuss
2026-01-27 20:24:44 +01:00
parent a4b49f8979
commit eba269f2e7
2 changed files with 10 additions and 2 deletions

View File

@@ -107,7 +107,11 @@ appDoorSendValue:
appDoorSendValue_send: appDoorSendValue_send:
ldi r17, VALUE_ID_TCRT1K ; VALUE ID ldi r17, VALUE_ID_TCRT1K ; VALUE ID
ldi r22, AQHOME_VALUETYPE_DOOR ; VALUE TYPE ldi r22, AQHOME_VALUETYPE_DOOR ; VALUE TYPE
rjmp Main_Send8BitValueReport rcall Main_Send8BitValueReport
#ifdef MODULES_LED_ACTIVITY
rcall LedActivity_Trigger ; (r16)
#endif
ret
; @end ; @end

View File

@@ -100,7 +100,11 @@ appMotionSendValue:
ldi r17, VALUE_ID_MOTION ; VALUE ID ldi r17, VALUE_ID_MOTION ; VALUE ID
ldi r22, AQHOME_VALUETYPE_MOTION ; VALUE TYPE ldi r22, AQHOME_VALUETYPE_MOTION ; VALUE TYPE
rjmp Main_Send8BitValueReport rcall Main_Send8BitValueReport
#ifdef MODULES_LED_ACTIVITY
rcall LedActivity_Trigger ; (r16)
#endif
ret
; @end ; @end