Commit 43d009fb5b2a8e39cf50348f702adb12e28d525e
1 parent
ae10958760
Exists in
master
and in
2 other branches
오븐 제어 인터페이스에 시간 설정 메소드 추가
Showing
3 changed files
with
7 additions
and
0 deletions
Show diff stats
app/gui/oven_control/oven.h
... | ... | @@ -24,6 +24,7 @@ public slots: |
24 | 24 | // virtual void setMode(Oven::Mode mode) = 0; |
25 | 25 | virtual void setHumidity(int percentage) = 0; |
26 | 26 | virtual void setTemp(int celsius) = 0; |
27 | + virtual void setTime(int secs) = 0; | |
27 | 28 | virtual void setInterTemp(int celsius) = 0; |
28 | 29 | virtual void setFan(int rpm) = 0; |
29 | 30 | ... | ... |
app/gui/oven_control/ovencontroller.cpp
... | ... | @@ -48,6 +48,11 @@ void OvenController::setTemp(int celsius) |
48 | 48 | udp->set(TG_HEAT, celsius); |
49 | 49 | } |
50 | 50 | |
51 | +void OvenController::setTime(int secs) | |
52 | +{ | |
53 | + udp->set(TG_TIME, secs); | |
54 | +} | |
55 | + | |
51 | 56 | void OvenController::setInterTemp(int celsius) |
52 | 57 | { |
53 | 58 | udp->set(TG_INNER_TEMP, celsius); | ... | ... |
app/gui/oven_control/ovencontroller.h