|
|
@ -212,6 +212,8 @@ void MainWindow::apply_automatic_state(void) |
|
|
|
for (i = 0; i < s->m_rooms.count(); i++) { |
|
|
|
const struct Room *r = &(s->m_rooms.at(i)); |
|
|
|
m_zones.at(i)->m_heating_on = get_heater_order(i); |
|
|
|
m_zones.at(i)->m_target_temperature = get_target_temperature(i); |
|
|
|
m_zones.at(i)->refresh(); |
|
|
|
qDebug() << "room " << r->name; |
|
|
|
for (int j = 0; j < r->heaters.count(); j++) { |
|
|
|
const struct Heater *h = &(r->heaters.at(j)); |
|
|
|