From f9456bcf58f0b8b3e1f383bb41e016e108ed2620 Mon Sep 17 00:00:00 2001 From: SASANO Takayoshi Date: Sun, 4 Apr 2021 18:20:53 +0900 Subject: [PATCH] add DEBUG_NO_G3_SUPPORT (at main.h) To disable ICOM G3 support function for testing, add new definition. --- src/cg3protocol.cpp | 6 ++++++ src/main.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/cg3protocol.cpp b/src/cg3protocol.cpp index 20f35a4..84d22c0 100755 --- a/src/cg3protocol.cpp +++ b/src/cg3protocol.cpp @@ -49,6 +49,12 @@ bool CG3Protocol::Init(void) // base class ok = CProtocol::Init(); +#ifdef DEBUG_NO_G3_SUPPORT + // G3 support can be killed (currently for test purpose) + m_bStopThread = true; + return true; +#endif + // update reflector callsign m_ReflectorCallsign.PatchCallsign(0, (const uint8 *)"XLX", 3); diff --git a/src/main.h b/src/main.h index 2b656f6..abf7b6d 100755 --- a/src/main.h +++ b/src/main.h @@ -64,6 +64,7 @@ //#define DEBUG_NO_ERROR_ON_XML_OPEN_FAIL //#define DEBUG_DUMPFILE //#define DEBUG_NO_G3_ICMP_SOCKET +//#define DEBUG_NO_G3_SUPPORT // reflector ---------------------------------------------------