Commit 7519794134a5c020fd7ee853ab5907d35c15eae1
1 parent
569d7a56c4
Exists in
master
and in
2 other branches
중심 온도 기능 비활성화가 제대로 되지 않는 문제 수정
Showing
1 changed file
with
10 additions
and
2 deletions
Show diff stats
app/gui/oven_control/ovencontroller.cpp
... | ... | @@ -99,8 +99,16 @@ void OvenController::setTime(int secs) |
99 | 99 | |
100 | 100 | void OvenController::setInterTemp(int celsius) |
101 | 101 | { |
102 | - qDebug() << "Set Core Temperature" << celsius << "+5"; | |
103 | - udp->set(TG_INNER_TEMP, celsius + 5); | |
102 | + if (celsius > 0) | |
103 | + { | |
104 | + qDebug() << "Set Core Temperature" << celsius << "+5"; | |
105 | + udp->set(TG_INNER_TEMP, celsius + 5); | |
106 | + } | |
107 | + else | |
108 | + { | |
109 | + qDebug() << "Set Core Temperature 0"; | |
110 | + udp->set(TG_INNER_TEMP, 0); | |
111 | + } | |
104 | 112 | } |
105 | 113 | |
106 | 114 | void OvenController::setFan(int rpm) | ... | ... |