From 2c746c43f293f56816082b224d93f2236fd7d42d Mon Sep 17 00:00:00 2001 From: taehoon Date: Fri, 7 Jan 2022 15:06:41 +0900 Subject: [PATCH] =?UTF-8?q?HACCP=20=EA=B8=B0=EB=A1=9D=20=EC=A1=B0=EA=B1=B4?= =?UTF-8?q?=EC=97=90=20=EC=88=98=EC=9C=84=20=EB=B3=80=EA=B2=BD=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/gui/oven_control/haccp.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/gui/oven_control/haccp.cpp b/app/gui/oven_control/haccp.cpp index 49426ce..4080b12 100644 --- a/app/gui/oven_control/haccp.cpp +++ b/app/gui/oven_control/haccp.cpp @@ -61,6 +61,7 @@ QTime lastStampedTime; Define::Mode lastMode; int lastFan; +int lastWaterLevel; bool lastDoor; bool lastDamper; bool lastSideNozzle; @@ -382,6 +383,7 @@ void start() { lastMode = Define::InvalidMode; lastFan = -1; + lastWaterLevel = -1; lastDoor = false; lastDamper = false; lastSideNozzle = false; @@ -431,6 +433,7 @@ void stamp(QString caption) data.records.append(s); lastDoor = oven->door(); + lastWaterLevel = udp->waterLevel(); lastStampedTime.start(); } @@ -630,6 +633,7 @@ void check() } Oven *oven = Oven::getInstance(); + UdpHandler *udp = UdpHandler::getInstance(); if (oven->mode() != lastMode) stampMode(oven->mode()); @@ -660,6 +664,9 @@ void check() if (oven->door() != lastDoor) stamp(); + if (udp->waterLevel() != lastWaterLevel) + stamp(); + if (lastStampedTime.elapsed() > 30 * 1000 - 100) stamp(); } -- 2.1.4