Commit c25b83f42d88e18d275928450bde792c2e1ff497

Authored by 김태훈
1 parent e567eba26a
Exists in master and in 2 other branches fhd, fhd-demo

전원 켜짐 기록 기능 제거

Showing 1 changed file with 1 additions and 28 deletions   Show diff stats
app/gui/oven_control/haccp.cpp
... ... @@ -41,7 +41,6 @@ struct Data
41 41 QList<Stamp> records;
42 42 } data;
43 43  
44   -QDateTime initializedTime;
45 44 int processCount;
46 45 QTimer checkTimer;
47 46 QTime lastStampedTime;
... ... @@ -75,7 +74,6 @@ void init()
75 74 // make the directory if it doesn't exist
76 75 QDir().mkpath("/prime/haccp");
77 76  
78   - initializedTime = QDateTime::currentDateTime();
79 77 processCount = figureProcessCount() + 1;
80 78  
81 79 checkTimer.setInterval(100);
... ... @@ -95,8 +93,6 @@ void autoStart(const QString &amp;path)
95 93  
96 94 void manualStart()
97 95 {
98   - qDebug() << __FUNCTION__;
99   -
100 96 initData(Manual);
101 97 start();
102 98 }
... ... @@ -120,7 +116,6 @@ void engineeringStart()
120 116  
121 117 void done()
122 118 {
123   - qDebug() << __FUNCTION__;
124 119 if (data.type == Invalid)
125 120 return;
126 121  
... ... @@ -361,15 +356,7 @@ void initData(Type type)
361 356 data.autoConfig.clear();
362 357 data.washType = 0;
363 358 data.records.clear();
364   -
365   - if (initializedTime.isValid())
366   - {
367   - data.startedAt = initializedTime;
368   - stampStart();
369   - }
370   - else
371   - data.startedAt = QDateTime::currentDateTime();
372   -
  359 + data.startedAt = QDateTime::currentDateTime();
373 360 }
374 361  
375 362 void start()
... ... @@ -424,15 +411,11 @@ void stamp(QString caption)
424 411  
425 412 void stampStart()
426 413 {
427   - qDebug() << __FUNCTION__;
428   -
429 414 stamp("START (POWER ON)");
430 415 }
431 416  
432 417 void stampMode(Define::Mode mode)
433 418 {
434   - qDebug() << __FUNCTION__;
435   -
436 419 switch (mode)
437 420 {
438 421 case Define::SteamMode:
... ... @@ -451,30 +434,22 @@ void stampMode(Define::Mode mode)
451 434  
452 435 void stampFan(int fan)
453 436 {
454   - qDebug() << __FUNCTION__;
455   -
456 437 lastFan = fan;
457 438 stamp(QString("FAN = %1").arg(fan));
458 439 }
459 440  
460 441 void stampDamper()
461 442 {
462   - qDebug() << __FUNCTION__;
463   -
464 443 stamp("DAMPER");
465 444 }
466 445  
467 446 void stampSideNozzle()
468 447 {
469   - qDebug() << __FUNCTION__;
470   -
471 448 stamp("SIDE NOZZLE");
472 449 }
473 450  
474 451 void stampEnd()
475 452 {
476   - qDebug() << __FUNCTION__;
477   -
478 453 stamp("END");
479 454 }
480 455  
... ... @@ -485,8 +460,6 @@ void stampError(QString error)
485 460  
486 461 void saveData()
487 462 {
488   - qDebug() << __FUNCTION__;
489   -
490 463 if (data.records.isEmpty())
491 464 {
492 465 data.type = Invalid;
... ...