From 5ee5ae9b1e601d077ab2bf4d9adc27e00f3ab693 Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Thu, 31 Dec 2009 13:58:31 +0100 Subject: Changed wakeup and reset of received data --- process.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'process.cpp') diff --git a/process.cpp b/process.cpp index f835353..7969136 100644 --- a/process.cpp +++ b/process.cpp @@ -636,7 +636,17 @@ void cProcessInfosatepg::Action() time_t firststarttime=-1; if (ParseInfosatepg(f,&firststarttime)) { - global->SetWakeupTime(firststarttime); + if (firststarttime>time(NULL)) + { + global->SetWakeupTime(firststarttime); + } + else + { + isyslog("infosatepg: wakeuptime from infosat is in the past"); + firststarttime=cTimer::SetTime(time(NULL),cTimer::TimeToInt(300)); + firststarttime+=79200; // add 20 hours + global->SetWakeupTime(firststarttime); + } global->Infosatdata[mac].Processed=true; } else -- cgit v1.2.3