Skip to content

Commit

Permalink
Added setting of rain_ok in genMessage()
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs authored Nov 12, 2023
1 parent 279ca88 commit 157062f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/WeatherSensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
// 20231028 Fixed startup flag polarity in 7-in-1, lightning and leakage decoder
// 20231030 Refactored sensor data using a union to save memory
// 20231101 Added radio transceiver SX1262
// 20231112 Added setting of rain_ok in genMessage()
//
// ToDo:
// -
Expand Down Expand Up @@ -336,6 +337,7 @@ bool WeatherSensor::genMessage(int i, uint32_t id, uint8_t s_type, uint8_t chann
sensor[i].w.wind_avg_meter_sec_fp1 = 33;
#endif
sensor[i].w.wind_ok = true;
sensor[i].w.rain_ok = true;
sensor[i].w.rain_mm = 9.9f;
}
else if (s_type == SENSOR_TYPE_LIGHTNING) {
Expand Down

0 comments on commit 157062f

Please sign in to comment.