Skip to content

Commit

Permalink
Compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Apr 10, 2024
1 parent 28e5f1a commit cae6eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BresserWeatherSensorLW.ino
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ uint32_t sleepDuration(void)
sleep_interval = sleep_interval - ((timeinfo.tm_min * 60) % sleep_interval + timeinfo.tm_sec);
}

sleep_interval = max(sleep_interval, SLEEP_INTERVAL_MIN);
sleep_interval = max(sleep_interval, static_cast<uint32_t>(SLEEP_INTERVAL_MIN));
return sleep_interval;
}

Expand Down

0 comments on commit cae6eef

Please sign in to comment.