Added a separate function to set the windspeed to the webupdater.

This commit is contained in:
Kai Lauterbach 2022-09-14 20:24:43 +02:00
parent 40b2550c89
commit 9abd468fbc
2 changed files with 6 additions and 1 deletions

View File

@ -567,7 +567,7 @@ void _fsm_loop()
}
#ifdef WEBUPDATER_FEATURE
setSensorData(currentSensorData);
sentWindspeed(currentSensorData[SENSOR_WINDSPEED]);
#endif
#endif

View File

@ -79,6 +79,11 @@ void doWebUpdater(void)
//*************************************************************************//
void sentWindspeed(float ws)
{
_webUpdater_sensValues[SENSOR_WINDSPEED] = ws;
}
void setWifiReconnectCnt(uint32_t wrc)
{
_wifi_reconnect_cnt = wrc;