Commit e24704e9edbfd5fd95459684a206fe190060186a
1 parent
16ef5d842d
Exists in
master
V2.02 통신 Timeout 시간 30초로 변경
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
app/gui/oven_control/define.h
app/gui/oven_control/udphandler.cpp
... | ... | @@ -7,6 +7,7 @@ |
7 | 7 | #define IPC_UDP_SYS_HOST "127.0.0.1" |
8 | 8 | #define IPC_UDP_SYS_PORT 4001 |
9 | 9 | #define IPC_UDP_GUI_PORT 4000 |
10 | +#define COMM_TIMEOUT_SEC 30 | |
10 | 11 | |
11 | 12 | typedef struct { |
12 | 13 | int header; |
... | ... | @@ -22,7 +23,7 @@ UdpHandler::UdpHandler(QObject *parent) : QObject(parent) |
22 | 23 | |
23 | 24 | emitted = false; |
24 | 25 | emitTimeoutTimer.setSingleShot(true); |
25 | - emitTimeoutTimer.setInterval(10 * 1000); | |
26 | + emitTimeoutTimer.setInterval(COMM_TIMEOUT_SEC * 1000); | |
26 | 27 | connect(&emitTimeoutTimer, SIGNAL(timeout()), SLOT(emitTimeout())); |
27 | 28 | |
28 | 29 | emitTimeoutTimer.start(); | ... | ... |