--- a/src/DetailCO2meter.cpp Fri Feb 10 14:06:47 2023 +0100 +++ b/src/DetailCO2meter.cpp Fri Feb 10 17:28:46 2023 +0100 @@ -32,7 +32,10 @@ { QSqlQuery query; +#ifdef DEBUG_MONITOR qDebug() << "DetailCO2meter record:" << id; +#endif + ui->setupUi(this); this->recno = id; setWindowFlags(Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint); @@ -65,8 +68,6 @@ QSqlQuery query, query2; QString sql = ""; -// qDebug() << "refreshTable co2meter rec:" << this->recno; - query.prepare("SELECT * FROM mon_co2meters WHERE record = :recno"); query.bindValue(":recno", this->recno); query.exec(); @@ -107,8 +108,6 @@ ui->minBar->setValue(barmin); ui->maxBar->setValue(barmax); ui->thisBar->setValue(barthis); -// qDebug() << " beerdata" << TSec << carbtemp << barmin << barmax << barthis; - ui->barMeter->setNominal(barmin); ui->barMeter->setCritical(barmax); } @@ -220,7 +219,9 @@ msg.append(QString("\"beername\":\"") + query.value("name").toString() + "\"}"); } +#ifdef DEBUG_MONITOR qDebug() << "code_changed" << val << msg; +#endif webSocket->sendTextMessage(msg); }