From 9abd468fbc659d1b2d7eae2f1799b6420ab7a787 Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Wed, 14 Sep 2022 20:24:43 +0200 Subject: [PATCH] Added a separate function to set the windspeed to the webupdater. --- firmware/firmware.ino | 2 +- firmware/webUpdater.ino | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/firmware/firmware.ino b/firmware/firmware.ino index 00181f2..0e7cd74 100644 --- a/firmware/firmware.ino +++ b/firmware/firmware.ino @@ -567,7 +567,7 @@ void _fsm_loop() } #ifdef WEBUPDATER_FEATURE - setSensorData(currentSensorData); + sentWindspeed(currentSensorData[SENSOR_WINDSPEED]); #endif #endif diff --git a/firmware/webUpdater.ino b/firmware/webUpdater.ino index af26554..d1d5c3f 100644 --- a/firmware/webUpdater.ino +++ b/firmware/webUpdater.ino @@ -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;