Correct a switchtimer error

This commit is contained in:
kamel5 2019-03-20 16:12:34 +01:00
parent d9b8af10e7
commit 68af1b2086
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,8 @@ cSwitchTimer::cSwitchTimer(void) {
cSwitchTimer::cSwitchTimer(const cEvent* Event) {
eventID = 0;
startTime = 0;
switchMinsBefore = 2;
announceOnly = 0;
if (Event) {
eventID = Event->EventID();
channelID = Event->ChannelID();
@ -27,6 +29,7 @@ cSwitchTimer& cSwitchTimer::operator= (const cSwitchTimer &SwitchTimer)
this->startTime = SwitchTimer.startTime;
this->channelID = SwitchTimer.channelID;
this->switchMinsBefore = SwitchTimer.switchMinsBefore;
this->announceOnly = SwitchTimer.announceOnly;
return *this;
}