Debug output added

This commit is contained in:
Kai Lauterbach 2022-05-23 12:52:57 +02:00
parent d8dbc00280
commit 7ef9dd4e53
1 changed files with 2 additions and 0 deletions

View File

@ -223,6 +223,7 @@ void _loop() {
#ifdef HTTP_CALL_ON_WINDSPEED_EXCEED
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])
{
// read from windspeed sensor
@ -237,6 +238,7 @@ void _loop() {
http.end();
// Send HTTP GET request
int httpResponseCode = http.GET();
debug("Called windspeed exceed callout");
}
} else {
currentSensorData[SENSOR_WINDSPEED] = nan("no value");