From ce9f6ffc44cc41dfbe9320650391ddcef5d86d3d Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Sat, 7 Feb 2009 00:14:30 +0100 Subject: Fixed bug while receiving data over midnight and before wakeup time --- global.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/global.cpp b/global.cpp index 0ba2b8c..b975b78 100644 --- a/global.cpp +++ b/global.cpp @@ -395,7 +395,9 @@ bool cGlobalInfosatepg::ReceivedAll(int *Day, int *Month) { // New day, but new data is ready only after wakeup-time time_t Now = time(NULL); - time_t Time = cTimer::SetTime(Now,cTimer::TimeToInt(WakeupTime())); + time_t Time; + if (WakeupTime()==-1) Time=Now+1; // No wakeup set, just wait + else Time = cTimer::SetTime(Now,cTimer::TimeToInt(WakeupTime())); if (Now>=Time) { // new day and new data should be available -- cgit v1.2.3