|
|
@ -207,7 +207,7 @@ void MainWindow::set_holiday_mode(QDateTime end_date) |
|
|
|
{ |
|
|
|
Settings *s = Settings::getInstance(); |
|
|
|
|
|
|
|
s->m_end_holiday = end_date; |
|
|
|
s->setEndHoliday(end_date); |
|
|
|
apply_order_to_heaters(); |
|
|
|
} |
|
|
|
|
|
|
@ -430,7 +430,7 @@ void MainWindow::apply_order_to_heaters(void) |
|
|
|
Settings *s = Settings::getInstance(); |
|
|
|
bool heating_order = false; |
|
|
|
|
|
|
|
if (s->m_end_holiday > QDateTime::currentDateTime()) { |
|
|
|
if (s->getEndHoliday() > QDateTime::currentDateTime()) { |
|
|
|
qDebug() << "Holiday mode => emit ALL_OFF order"; |
|
|
|
emit setAllHeatersOn(false); |
|
|
|
} else { |
|
|
|