powersave #2

Merged
martin merged 7 commits from powersave into main 2023-01-11 11:29:06 +01:00
Showing only changes of commit a2a7521e1d - Show all commits

View file

@ -89,7 +89,7 @@ int main() {
printf("%d-%02d-%02d %02d:%02d.%02d\n", dt.year, dt.month, dt.day, hour, dt.min, dt.sec); printf("%d-%02d-%02d %02d:%02d.%02d\n", dt.year, dt.month, dt.day, hour, dt.min, dt.sec);
// If there was a waste bin pickup found AND we are in the evening (>= 18:00) … // If there was a waste bin pickup found AND we are in the evening (>= 18:00) …
if (it != dates.end() && hour >= 18) { if (it != dates.end() && hour >= 18 && hour < 23) {
auto wasteDate = *it; auto wasteDate = *it;
size_t count{0}; size_t count{0};
auto currentTime = time_us_64(); auto currentTime = time_us_64();