diff options
author | horchi <vdr@jwendel.de> | 2018-02-17 09:35:36 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2018-02-17 09:35:36 +0100 |
commit | 0bdc56517a2e9512ef0f5156b1ffedc7ab94b3d7 (patch) | |
tree | 9a0d5b668710983f4d92f4ebe55356ef347986b2 /timer.c | |
parent | 81a3b0255bbf74bd6d6fe17cef394a4d4f338b09 (diff) | |
download | vdr-plugin-epg2vdr-0bdc56517a2e9512ef0f5156b1ffedc7ab94b3d7.tar.gz vdr-plugin-epg2vdr-0bdc56517a2e9512ef0f5156b1ffedc7ab94b3d7.tar.bz2 |
monor changes, gite merge
Diffstat (limited to 'timer.c')
-rw-r--r-- | timer.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -19,6 +19,7 @@ int cUpdate::checkSwitchTimer() { cMutexLock lock(&swTimerMutex); + int res = fail; for (auto it = switchTimers.begin(); it != switchTimers.end(); ) { @@ -51,6 +52,8 @@ int cUpdate::checkSwitchTimer() if (!cDevice::PrimaryDevice()->SwitchChannel(channel, true)) Skins.Message(mtError, tr("Can't switch channel!")); + else + res = success; } timerDb->clear(); @@ -61,6 +64,7 @@ int cUpdate::checkSwitchTimer() { timerDb->setCharValue("ACTION", taAssumed); timerDb->setCharValue("STATE", tsFinished); + timerDb->getValue("INFO")->sPrintf("Swich %s", res == success ? "succeeded" : "failed"); timerDb->store(); } else @@ -463,6 +467,7 @@ int cUpdate::takeSwitchTimer() timerDb->setCharValue("ACTION", taAssumed); timerDb->setCharValue("STATE", tsFinished); + timerDb->setValue("INFO", "Removed, to old"); timerDb->store(); continue; } @@ -494,7 +499,7 @@ int cUpdate::takeSwitchTimer() // that's special for switch timers since we have to get the 'pending' also after a vdr restart tell(1, "Got switch timer (%ld) for channel '%s' at '%s'", - timerDb->getIntValue("ID"), timerDb->getStrValue("CHANNELID"), + timerid, timerDb->getStrValue("CHANNELID"), l2pTime(timerDb->getIntValue("_STARTTIME") - tmeSecondsPerMinute).c_str()); switchTimers[timerid].eventId = timerDb->getIntValue("EVENTID"); |