From ff71dad13f4dcb8931b1a4bc389b92a6e81dc2dc Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Fri, 4 Nov 2022 08:41:28 +0100 Subject: [PATCH] Added a comment to descript a for loop behaviour. --- firmware/firmware.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/firmware.ino b/firmware/firmware.ino index e78d9a2..a6569ba 100644 --- a/firmware/firmware.ino +++ b/firmware/firmware.ino @@ -526,7 +526,7 @@ void _fsm_loop() //debug("send data to influxdb if required"); #ifdef INFLUXDB_FEATURE for (uint8_t i = 0; i < 5 and validData == false; i++) - { + { // only check sensor data 0 to 4 -> SENSOR_TEMPERATURE, SENSOR_HUMIDITY, SENSOR_LIGHT, SENSOR_WINDSPEED, SENSOR_PRESSURE if (currentSensorData[i] != 0 and currentSensorData[i] != nanf("no value") and (not isnan(currentSensorData[i]))) { validData = true;