From 68af1b20863d390355cc14a563a3a5062382dfb1 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Wed, 20 Mar 2019 16:12:34 +0100 Subject: [PATCH] Correct a switchtimer error --- switchtimer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/switchtimer.c b/switchtimer.c index bf21553..125b11e 100644 --- a/switchtimer.c +++ b/switchtimer.c @@ -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; }