Skip to content

Commit

Permalink
Added weather sensor startup handling to rain gauge
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Jul 17, 2023
1 parent fd8d9cf commit a092712
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
// 20230711 Changed remaining MQTT topics from char[] to String
// Fixed secure WiFi with CHECK_CA_ROOT for ESP32
// Added define RX_STRATEGY
// 20230717 Added weather sensor startup handling to rain gauge
//
// ToDo:
//
Expand Down Expand Up @@ -474,7 +475,7 @@ void publishWeatherdata(bool complete)
if (weatherSensor.sensor[i].rain_ok) {
struct tm timeinfo;
gmtime_r(&now, &timeinfo);
rainGauge.update(timeinfo, weatherSensor.sensor[i].rain_mm);
rainGauge.update(timeinfo, weatherSensor.sensor[i].rain_mm, weatherSensor.sensor[i].startup);
}

// Example:
Expand Down

0 comments on commit a092712

Please sign in to comment.