HTTP_CALL_ON_WINDSPEED_EXCEED execution bug fix

This commit is contained in:
Kai Lauterbach 2022-05-23 12:21:11 +02:00
parent 174eaa985e
commit d8dbc00280

View file

@ -221,7 +221,7 @@ void _loop() {
#endif
#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)
{
if (sensors[SENSOR_WINDSPEED])
{