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

feature/main_loop_to_fsm
Kai Lauterbach 9 months ago
parent 40b2550c89
commit 9abd468fbc

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

@ -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;

Loading…
Cancel
Save