Skip to content

Commit

Permalink
Merge pull request #142 from matthias-bs/fix-clear-slots
Browse files Browse the repository at this point in the history
Fix clear slots
  • Loading branch information
matthias-bs committed Feb 22, 2024
2 parents 97b0eb3 + ac7927b commit 59da124
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
9 changes: 9 additions & 0 deletions examples/BresserWeatherSensorMQTTCustom/src/WeatherSensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
// see https://github.com/merbanan/rtl_433/pull/2815
// & https://github.com/merbanan/rtl_433/pull/2817
// 20240213 Added PM1.0 to air quality (PM) sensor decoder
// 20240222 Added clearing of flags in clearSlots() to prevent mixing of old and new data
//
// ToDo:
// -
Expand Down Expand Up @@ -326,6 +327,14 @@ class WeatherSensor {
sensor[i].valid = false;
sensor[i].complete = false;
}
if (sensor[i].s_type == SENSOR_TYPE_WEATHER1) {
sensor[i].w.temp_ok = false;
sensor[i].w.humidity_ok = false;
sensor[i].w.light_ok = false;
sensor[i].w.uv_ok = false;
sensor[i].w.wind_ok = false;
sensor[i].w.rain_ok = false;
}
}
};

Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=BresserWeatherSensorReceiver
version=0.23.0
version=0.23.1
author=Matthias Prinke <matthias-bs@web.de>
maintainer=Matthias Prinke <matthias-bs@web.de>
sentence=Bresser 5-in-1/6-in-1/7-in-1 868 MHz Weather Sensor Radio Receiver for Arduino based on CC1101, SX1276/RFM95W or SX1262.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "BresserWeatherSensorReceiver",
"version": "0.23.0",
"version": "0.23.1",
"description": "Bresser 5-in-1/6-in-1/7-in-1 868 MHz Weather Sensor Radio Receiver for Arduino based on CC1101, SX1276/RFM95W or SX1262",
"main": "WeatherSensor.cpp",
"frameworks": "arduino",
Expand Down
9 changes: 9 additions & 0 deletions src/WeatherSensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
// see https://github.com/merbanan/rtl_433/pull/2815
// & https://github.com/merbanan/rtl_433/pull/2817
// 20240213 Added PM1.0 to air quality (PM) sensor decoder
// 20240222 Added clearing of flags in clearSlots() to prevent mixing of old and new data
//
// ToDo:
// -
Expand Down Expand Up @@ -326,6 +327,14 @@ class WeatherSensor {
sensor[i].valid = false;
sensor[i].complete = false;
}
if (sensor[i].s_type == SENSOR_TYPE_WEATHER1) {
sensor[i].w.temp_ok = false;
sensor[i].w.humidity_ok = false;
sensor[i].w.light_ok = false;
sensor[i].w.uv_ok = false;
sensor[i].w.wind_ok = false;
sensor[i].w.rain_ok = false;
}
}
};

Expand Down

0 comments on commit 59da124

Please sign in to comment.