Browse Source

Thermostat: apply order ASAP

master
rico rico 4 years ago
parent
commit
3faa456916
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      soft/thermostat/src/mainwindow.cpp

+ 6
- 0
soft/thermostat/src/mainwindow.cpp View File

@ -262,12 +262,18 @@ void MainWindow::apply_order_to_heaters(void)
void MainWindow::temperature_slot(int idx, double val)
{
static bool temp_received[MAX_NB_ZONES];
Settings *s = Settings::getInstance();
qDebug() << "temperature idx:" << idx << " val: " << val << endl;
if (idx < s->nbZones()) {
m_zones.at(idx)->m_temperature_value = val;
m_zones.at(idx)->refresh();
if (!temp_received[idx]) {
temp_received[idx] = true;
apply_order_to_heaters();
}
}
}


Loading…
Cancel
Save