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