From c5908321b8f3878fa087a788025339a98714df14 Mon Sep 17 00:00:00 2001 From: Lars Hanisch Date: Sun, 4 Sep 2011 16:20:08 +0200 Subject: auto-wakeup and idle-again now works correctly if the device is not used with OpenDvr in the meantime --- HISTORY | 4 ++++ dynamicdevice.c | 8 ++++++-- dynamite.c | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/HISTORY b/HISTORY index f2e0dbf..406d444 100644 --- a/HISTORY +++ b/HISTORY @@ -180,3 +180,7 @@ VDR Plugin 'dynamite' Revision History 2011-09-04: Version 0.0.7b - correct timeout evaluation for auto-idle + +2011-09-04: Version 0.0.7c + +- auto-wakeup and idle-again now works correctly if the device is not used with "OpenDvr" in the meantime diff --git a/dynamicdevice.c b/dynamicdevice.c index 5191846..d35124d 100644 --- a/dynamicdevice.c +++ b/dynamicdevice.c @@ -325,10 +325,14 @@ eDynamicDeviceReturnCode cDynamicDevice::SetIdle(const char *DevPath, bool Idle) } else if (idleHook && !Idle) CallIdleHook(**idleHook, dynamicdevice[index]->GetDevPath(), Idle); - if (Idle) + if (Idle) { dynamicdevice[index]->idleSince = time(NULL); - else + dynamicdevice[index]->lastCloseDvr = dynamicdevice[index]->idleSince; + } + else { dynamicdevice[index]->idleSince = 0; + dynamicdevice[index]->lastCloseDvr = time(NULL); + } return ddrcSuccess; } diff --git a/dynamite.c b/dynamite.c index fd2a813..763be6a 100644 --- a/dynamite.c +++ b/dynamite.c @@ -10,7 +10,7 @@ #include "menu.h" #include "monitor.h" -static const char *VERSION = "0.0.7b"; +static const char *VERSION = "0.0.7c"; static const char *DESCRIPTION = tr("attach/detach devices on the fly"); static const char *MAINMENUENTRY = NULL; -- cgit v1.2.3