some inits

This commit is contained in:
Jacek Jendrzej
2021-10-22 14:25:37 +02:00
parent 56274bf320
commit 4a23e0cdf2
4 changed files with 7 additions and 6 deletions

View File

@@ -3015,11 +3015,12 @@ void CControlAPI::doNewTimer(CyhookHandler *hh)
std::string _rec_dir = hh->ParamList["rec_dir"];
void *data=NULL;
bool standby_on = false;
if(type == CTimerd::TIMER_RECORD)
announceTimeT-=120;
if(type == CTimerd::TIMER_STANDBY)
{
bool standby_on = (hh->ParamList["sbon"]=="1");
standby_on = (hh->ParamList["sbon"]=="1");
data=&standby_on;
}
/* else if(type==CTimerd::TIMER_NEXTPROGRAM || type==CTimerd::TIMER_ZAPTO) */