timermanager: add standby-on timer to wakeup from depstandby, is as silent wakeup without use CEC-on

This commit is contained in:
Jacek Jendrzej
2020-01-20 13:36:57 +01:00
parent 97399263f1
commit 6e7a7d4bae

View File

@@ -749,16 +749,18 @@ bool CTimerManager::shutdown()
{
CTimerEvent *event = pos->second;
dprintf("shutdown: timer type %d state %d announceTime: %ld\n", event->eventType, event->eventState, event->announceTime);
bool standby_on_timer = (event->eventType == CTimerd::TIMER_STANDBY && static_cast<CTimerEvent_Standby*>(event)->standby_on);// wakeup without CEC-on from depstanby
if((event->eventType == CTimerd::TIMER_RECORD ||
event->eventType == CTimerd::TIMER_ZAPTO ) &&
event->eventType == CTimerd::TIMER_ZAPTO || standby_on_timer ) &&
event->eventState < CTimerd::TIMERSTATE_ISRUNNING)
{
// Wir wachen nur f<>r Records und Zaptos wieder auf
// Wir wachen nur f<>r Records und Zaptos und Stanby-ON wieder auf
if(event->announceTime < nextAnnounceTime || nextAnnounceTime==0)
{
nextAnnounceTime=event->announceTime;
dprintf("shutdown: nextAnnounceTime %ld\n", nextAnnounceTime);
if ( event->eventType == CTimerd::TIMER_RECORD )
if ( event->eventType == CTimerd::TIMER_RECORD || standby_on_timer )
timer_is_rec = true;
else
timer_is_rec = false;