From ee550dc4a703053cb355745a8e4201919dcdf58b Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Fri, 9 Jun 2023 19:54:24 +0200 Subject: [PATCH 1/2] Added setting of valid/complete flags in decodeBresser7In1Payload() --- src/WeatherSensor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/WeatherSensor.cpp b/src/WeatherSensor.cpp index fc9b279b..80b05f6c 100644 --- a/src/WeatherSensor.cpp +++ b/src/WeatherSensor.cpp @@ -909,6 +909,8 @@ DecodeStatus WeatherSensor::decodeBresser7In1Payload(uint8_t *msg, uint8_t msgSi sensor[slot].light_lux = light_lux; sensor[slot].uv = uv_index; sensor[slot].battery_ok = !battery_low; + sensor[slot].valid = true; + sensor[slot].complete = true; sensor[slot].rssi = rssi; /* clang-format off */ From c6341b5c184f6c1ee1d994aeb731104d454694f1 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Fri, 9 Jun 2023 19:56:12 +0200 Subject: [PATCH 2/2] Added setting of valif/complete flags in decodeBresser7In1Payload() --- examples/BresserWeatherSensorMQTTCustom/src/WeatherSensor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/BresserWeatherSensorMQTTCustom/src/WeatherSensor.cpp b/examples/BresserWeatherSensorMQTTCustom/src/WeatherSensor.cpp index 58ae6648..fa33edcb 100644 --- a/examples/BresserWeatherSensorMQTTCustom/src/WeatherSensor.cpp +++ b/examples/BresserWeatherSensorMQTTCustom/src/WeatherSensor.cpp @@ -877,6 +877,8 @@ DecodeStatus WeatherSensor::decodeBresser7In1Payload(uint8_t *msg, uint8_t msgSi sensor[slot].light_lux = light_lux; sensor[slot].uv = uv_index; sensor[slot].battery_ok = !battery_low; + sensor[slot].valid = true; + sensor[slot].complete = true; sensor[slot].rssi = rssi; /* clang-format off */