--- smsdaemon/SmsDaemon.cpp 2008/12/06 14:43:41 127 +++ smsdaemon/SmsDaemon.cpp 2008/12/06 15:13:34 128 @@ -32,7 +32,7 @@ void SmsDaemon::CheckSms() { - const int INTERVAL = 250; //no of milliseconds between sms checks + const int INTERVAL = 1000; //no of milliseconds between sms checks timeval now = Util::GetTimeOfDay(); if ( Util::mTimeDiff(_lastSmsCheck,now) < INTERVAL) @@ -78,23 +78,17 @@ mainContinue = true; - int loopcount = 0; while (mainContinue) { - if (loopcount > 100 ) - { - CheckSms(); - cmn->GetTaskManager()->ExecuteTasks(_modem); + CheckSms(); - loopcount = 0; - } + cmn->GetTaskManager()->ExecuteTasks(_modem); if (cmn->isDebug && kbhit()) break; - loopcount++; - Util::Sleep(10); + Util::Sleep(100); } }