From 665ed3e018b38f38667eb11cbd38cd653675e8b5 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Fri, 1 Nov 2024 14:48:59 -0400 Subject: [PATCH] add definition for a CC-VC (to prevent confusion); --- src/sysview/NodeStatusWnd.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/sysview/NodeStatusWnd.h b/src/sysview/NodeStatusWnd.h index 250d9a44..653855c0 100644 --- a/src/sysview/NodeStatusWnd.h +++ b/src/sysview/NodeStatusWnd.h @@ -171,7 +171,15 @@ public: m_tbText = std::string("ENH. VOICE/CONV"); } else { - m_tbText = std::string("VOICE/CONV"); + if (peerStatus["vControl"].is()) { + bool vControl = peerStatus["vControl"].getDefault(false); + if (vControl) + m_tbText = std::string("CC-VC"); + else + m_tbText = std::string("VOICE/CONV"); + } else { + m_tbText = std::string("VOICE/CONV"); + } } // are we transmitting? @@ -531,6 +539,9 @@ public: vcObj["state"].set(state); + bool _true = true; + vcObj["vControl"].set(_true); + bool _false = false; vcObj["dmrTSCCEnable"].set(_false); vcObj["dmrCC"].set(_false); @@ -613,6 +624,9 @@ public: vcObj["state"].set(state); + bool _true = true; + vcObj["vControl"].set(_true); + bool _false = false; vcObj["dmrTSCCEnable"].set(_false); vcObj["dmrCC"].set(_false);