Skip to content

Commit

Permalink
Added 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 a092712 commit 93fd38f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,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 startup handling to rain gauge
//
// ToDo:
//
Expand Down Expand Up @@ -630,7 +631,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 93fd38f

Please sign in to comment.