|
|
@ -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(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|