From b9ac7c65fa19af279ac0981a9793b553db6c59cb Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Thu, 5 Jun 2025 22:46:55 +0200 Subject: [PATCH] include CCS811 in reportsensors app. --- avr/apps/reportsensors/main.asm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/avr/apps/reportsensors/main.asm b/avr/apps/reportsensors/main.asm index 6f4751e..a01bac5 100644 --- a/avr/apps/reportsensors/main.asm +++ b/avr/apps/reportsensors/main.asm @@ -107,6 +107,13 @@ AppReportSensors_OnEverySecond_store: breq AppReportSensors_OnEverySecond_sendValue3 #endif +#ifdef MODULES_CCS811 + cpi r16, 31 + breq AppReportSensors_OnEverySecond_sendCCS811_TVOC + cpi r16, 35 + breq AppReportSensors_OnEverySecond_sendCCS811_CO2 +#endif + ret #ifdef MODULES_SI7021 @@ -142,6 +149,13 @@ AppReportSensors_OnEverySecond_sendValue3: rjmp SGP30_SendCO2 #endif +#ifdef MODULES_CCS811 +AppReportSensors_OnEverySecond_sendCCS811_TVOC: + rjmp CCS811_SendTVOC +AppReportSensors_OnEverySecond_sendCCS811_CO2: + rjmp CCS811_SendCO2 +#endif + ; @end