From e82c1cbe5c6797e4401ee69b7ed5a314cab50a6d Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Mon, 10 Nov 2025 14:48:36 +0100 Subject: [PATCH] avr: report motion and door values every 2m. --- avr/apps/reportsensors/main.asm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/avr/apps/reportsensors/main.asm b/avr/apps/reportsensors/main.asm index 51b9a25..3f6dfb1 100644 --- a/avr/apps/reportsensors/main.asm +++ b/avr/apps/reportsensors/main.asm @@ -117,6 +117,16 @@ AppReportSensors_OnEverySecond_store: breq AppReportSensors_OnEverySecond_sendBrightness #endif +#ifdef APPS_DOOR + cpi r16, 100 + breq AppReportSensors_OnEverySecond_sendDoorValue +#endif + +#ifdef APPS_MOTION + cpi r16, 108 + breq AppReportSensors_OnEverySecond_sendMotionValue +#endif + ret #ifdef MODULES_SI7021 @@ -162,6 +172,16 @@ AppReportSensors_OnEverySecond_sendBrightness: rjmp Brightness_Send #endif +#ifdef APPS_DOOR +AppReportSensors_OnEverySecond_sendDoorValue: + rjmp appDoorSendValue +#endif + +#ifdef APPS_MOTION +AppReportSensors_OnEverySecond_sendMotionValue: + rjmp appMotionSendValue +#endif + ; @end