From 6f5f5fc90c9929208e763fe076c52cdca2a4acff Mon Sep 17 00:00:00 2001 From: byloveletter Date: Thu, 17 Jun 2021 11:41:20 +0900 Subject: [PATCH] =?UTF-8?q?V2.02=20=ED=86=B5=EC=8B=A0=20Timeout=20?= =?UTF-8?q?=EC=8B=9C=EA=B0=84=2030=EC=B4=88=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/gui/oven_control/define.h | 4 ++-- app/gui/oven_control/udphandler.cpp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/gui/oven_control/define.h b/app/gui/oven_control/define.h index 48f3482..c56e4e2 100644 --- a/app/gui/oven_control/define.h +++ b/app/gui/oven_control/define.h @@ -5,11 +5,11 @@ #define MAJOR_VER 2 #define MINOR_VER 0 -#define HOTFIX_VER 1 +#define HOTFIX_VER 2 // 0 for normal // 1 for premium -#define MODEL_GRADE 1 +#define MODEL_GRADE 0 namespace Define { diff --git a/app/gui/oven_control/udphandler.cpp b/app/gui/oven_control/udphandler.cpp index ee3d61c..f6b7ff3 100644 --- a/app/gui/oven_control/udphandler.cpp +++ b/app/gui/oven_control/udphandler.cpp @@ -7,6 +7,7 @@ #define IPC_UDP_SYS_HOST "127.0.0.1" #define IPC_UDP_SYS_PORT 4001 #define IPC_UDP_GUI_PORT 4000 +#define COMM_TIMEOUT_SEC 30 typedef struct { int header; @@ -22,7 +23,7 @@ UdpHandler::UdpHandler(QObject *parent) : QObject(parent) emitted = false; emitTimeoutTimer.setSingleShot(true); - emitTimeoutTimer.setInterval(10 * 1000); + emitTimeoutTimer.setInterval(COMM_TIMEOUT_SEC * 1000); connect(&emitTimeoutTimer, SIGNAL(timeout()), SLOT(emitTimeout())); emitTimeoutTimer.start(); -- 2.1.4