Added a separate function to set the windspeed to the webupdater.
This commit is contained in:
parent
40b2550c89
commit
9abd468fbc
2 changed files with 6 additions and 1 deletions
|
@ -567,7 +567,7 @@ void _fsm_loop()
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WEBUPDATER_FEATURE
|
#ifdef WEBUPDATER_FEATURE
|
||||||
setSensorData(currentSensorData);
|
sentWindspeed(currentSensorData[SENSOR_WINDSPEED]);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -79,6 +79,11 @@ void doWebUpdater(void)
|
||||||
|
|
||||||
//*************************************************************************//
|
//*************************************************************************//
|
||||||
|
|
||||||
|
void sentWindspeed(float ws)
|
||||||
|
{
|
||||||
|
_webUpdater_sensValues[SENSOR_WINDSPEED] = ws;
|
||||||
|
}
|
||||||
|
|
||||||
void setWifiReconnectCnt(uint32_t wrc)
|
void setWifiReconnectCnt(uint32_t wrc)
|
||||||
{
|
{
|
||||||
_wifi_reconnect_cnt = wrc;
|
_wifi_reconnect_cnt = wrc;
|
||||||
|
|
Loading…
Reference in a new issue