diff --git a/app/gui/oven_control/haccp.cpp b/app/gui/oven_control/haccp.cpp index ec5bd41..00d50db 100644 --- a/app/gui/oven_control/haccp.cpp +++ b/app/gui/oven_control/haccp.cpp @@ -41,7 +41,6 @@ struct Data QList records; } data; -QDateTime initializedTime; int processCount; QTimer checkTimer; QTime lastStampedTime; @@ -75,7 +74,6 @@ void init() // make the directory if it doesn't exist QDir().mkpath("/prime/haccp"); - initializedTime = QDateTime::currentDateTime(); processCount = figureProcessCount() + 1; checkTimer.setInterval(100); @@ -95,8 +93,6 @@ void autoStart(const QString &path) void manualStart() { - qDebug() << __FUNCTION__; - initData(Manual); start(); } @@ -120,7 +116,6 @@ void engineeringStart() void done() { - qDebug() << __FUNCTION__; if (data.type == Invalid) return; @@ -361,15 +356,7 @@ void initData(Type type) data.autoConfig.clear(); data.washType = 0; data.records.clear(); - - if (initializedTime.isValid()) - { - data.startedAt = initializedTime; - stampStart(); - } - else - data.startedAt = QDateTime::currentDateTime(); - + data.startedAt = QDateTime::currentDateTime(); } void start() @@ -424,15 +411,11 @@ void stamp(QString caption) void stampStart() { - qDebug() << __FUNCTION__; - stamp("START (POWER ON)"); } void stampMode(Define::Mode mode) { - qDebug() << __FUNCTION__; - switch (mode) { case Define::SteamMode: @@ -451,30 +434,22 @@ void stampMode(Define::Mode mode) void stampFan(int fan) { - qDebug() << __FUNCTION__; - lastFan = fan; stamp(QString("FAN = %1").arg(fan)); } void stampDamper() { - qDebug() << __FUNCTION__; - stamp("DAMPER"); } void stampSideNozzle() { - qDebug() << __FUNCTION__; - stamp("SIDE NOZZLE"); } void stampEnd() { - qDebug() << __FUNCTION__; - stamp("END"); } @@ -485,8 +460,6 @@ void stampError(QString error) void saveData() { - qDebug() << __FUNCTION__; - if (data.records.isEmpty()) { data.type = Invalid;