avr: report motion and door values every 2m.

This commit is contained in:
Martin Preuss
2025-11-10 14:48:36 +01:00
parent 9a37bae20d
commit e82c1cbe5c

View File

@@ -117,6 +117,16 @@ AppReportSensors_OnEverySecond_store:
breq AppReportSensors_OnEverySecond_sendBrightness breq AppReportSensors_OnEverySecond_sendBrightness
#endif #endif
#ifdef APPS_DOOR
cpi r16, 100
breq AppReportSensors_OnEverySecond_sendDoorValue
#endif
#ifdef APPS_MOTION
cpi r16, 108
breq AppReportSensors_OnEverySecond_sendMotionValue
#endif
ret ret
#ifdef MODULES_SI7021 #ifdef MODULES_SI7021
@@ -162,6 +172,16 @@ AppReportSensors_OnEverySecond_sendBrightness:
rjmp Brightness_Send rjmp Brightness_Send
#endif #endif
#ifdef APPS_DOOR
AppReportSensors_OnEverySecond_sendDoorValue:
rjmp appDoorSendValue
#endif
#ifdef APPS_MOTION
AppReportSensors_OnEverySecond_sendMotionValue:
rjmp appMotionSendValue
#endif
; @end ; @end