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();