Debug output added

This commit is contained in:
Kai Lauterbach 2022-05-23 12:52:57 +02:00
parent d8dbc00280
commit 7ef9dd4e53

View file

@ -223,6 +223,7 @@ void _loop() {
#ifdef HTTP_CALL_ON_WINDSPEED_EXCEED #ifdef HTTP_CALL_ON_WINDSPEED_EXCEED
if (HTTP_CALL_ON_WINDSPEED_INTERVAL_S * 1000 / DELAY_LOOP_MS <= update_windspeed_exceed_cnt) if (HTTP_CALL_ON_WINDSPEED_INTERVAL_S * 1000 / DELAY_LOOP_MS <= update_windspeed_exceed_cnt)
{ {
debug("Reading wind sensor because of exceed call functionality");
if (sensors[SENSOR_WINDSPEED]) if (sensors[SENSOR_WINDSPEED])
{ {
// read from windspeed sensor // read from windspeed sensor
@ -237,6 +238,7 @@ void _loop() {
http.end(); http.end();
// Send HTTP GET request // Send HTTP GET request
int httpResponseCode = http.GET(); int httpResponseCode = http.GET();
debug("Called windspeed exceed callout");
} }
} else { } else {
currentSensorData[SENSOR_WINDSPEED] = nan("no value"); currentSensorData[SENSOR_WINDSPEED] = nan("no value");