Skip to content

Commit

Permalink
Merge pull request #59 from matthias-bs/fix-decode-7in1
Browse files Browse the repository at this point in the history
Fix decode 7in1
  • Loading branch information
matthias-bs committed Jun 9, 2023
2 parents 391f364 + c6341b5 commit a1fcc16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/BresserWeatherSensorMQTTCustom/src/WeatherSensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 2 additions & 0 deletions src/WeatherSensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit a1fcc16

Please sign in to comment.