From 7519794134a5c020fd7ee853ab5907d35c15eae1 Mon Sep 17 00:00:00 2001 From: victor Date: Fri, 28 Jul 2017 10:59:01 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A4=91=EC=8B=AC=20=EC=98=A8=EB=8F=84=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EB=B9=84=ED=99=9C=EC=84=B1=ED=99=94?= =?UTF-8?q?=EA=B0=80=20=EC=A0=9C=EB=8C=80=EB=A1=9C=20=EB=90=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/gui/oven_control/ovencontroller.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/gui/oven_control/ovencontroller.cpp b/app/gui/oven_control/ovencontroller.cpp index fe3a4d4..714c135 100644 --- a/app/gui/oven_control/ovencontroller.cpp +++ b/app/gui/oven_control/ovencontroller.cpp @@ -99,8 +99,16 @@ void OvenController::setTime(int secs) void OvenController::setInterTemp(int celsius) { - qDebug() << "Set Core Temperature" << celsius << "+5"; - udp->set(TG_INNER_TEMP, celsius + 5); + if (celsius > 0) + { + qDebug() << "Set Core Temperature" << celsius << "+5"; + udp->set(TG_INNER_TEMP, celsius + 5); + } + else + { + qDebug() << "Set Core Temperature 0"; + udp->set(TG_INNER_TEMP, 0); + } } void OvenController::setFan(int rpm) -- 2.1.4