From a2a7521e1db6375c699ecd3a7cad13689761dc2b Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Mon, 9 Jan 2023 08:51:10 +0100 Subject: [PATCH] WIP: try to save energy --- src/abfall.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/abfall.cpp b/src/abfall.cpp index ef5bebe..94d20dc 100644 --- a/src/abfall.cpp +++ b/src/abfall.cpp @@ -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); // 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; size_t count{0}; auto currentTime = time_us_64();