From 1b277741de00f64f1ba84b1957db23198e8ec74f Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Mon, 4 Dec 2023 13:04:12 +0000 Subject: [PATCH] Add more logging for mode changing. --- MMDVMHost.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/MMDVMHost.cpp b/MMDVMHost.cpp index 4cc1c18f..efdd6a47 100644 --- a/MMDVMHost.cpp +++ b/MMDVMHost.cpp @@ -2033,6 +2033,7 @@ void CMMDVMHost::setMode(unsigned char mode) m_modeTimer.start(); m_cwIdTimer.stop(); createLockFile("D-Star"); + LogMessage("Mode set to D-Star"); break; case MODE_DMR: @@ -2081,6 +2082,7 @@ void CMMDVMHost::setMode(unsigned char mode) m_modeTimer.start(); m_cwIdTimer.stop(); createLockFile("DMR"); + LogMessage("Mode set to DMR"); break; case MODE_YSF: @@ -2125,6 +2127,7 @@ void CMMDVMHost::setMode(unsigned char mode) m_modeTimer.start(); m_cwIdTimer.stop(); createLockFile("System Fusion"); + LogMessage("Mode set to System Fusion"); break; case MODE_P25: @@ -2169,6 +2172,7 @@ void CMMDVMHost::setMode(unsigned char mode) m_modeTimer.start(); m_cwIdTimer.stop(); createLockFile("P25"); + LogMessage("Mode set to P25"); break; case MODE_NXDN: @@ -2213,6 +2217,7 @@ void CMMDVMHost::setMode(unsigned char mode) m_modeTimer.start(); m_cwIdTimer.stop(); createLockFile("NXDN"); + LogMessage("Mode set to NXDN"); break; case MODE_M17: @@ -2257,6 +2262,7 @@ void CMMDVMHost::setMode(unsigned char mode) m_modeTimer.start(); m_cwIdTimer.stop(); createLockFile("M17"); + LogMessage("Mode set to M17"); break; case MODE_POCSAG: @@ -2301,6 +2307,7 @@ void CMMDVMHost::setMode(unsigned char mode) m_modeTimer.start(); m_cwIdTimer.stop(); createLockFile("POCSAG"); + LogMessage("Mode set to POCSAG"); break; case MODE_FM: @@ -2350,6 +2357,7 @@ void CMMDVMHost::setMode(unsigned char mode) m_modeTimer.start(); m_cwIdTimer.stop(); createLockFile("FM"); + LogMessage("Mode set to FM"); break; case MODE_LOCKOUT: @@ -2399,6 +2407,7 @@ void CMMDVMHost::setMode(unsigned char mode) m_modeTimer.stop(); m_cwIdTimer.stop(); removeLockFile(); + LogMessage("Mode set to Lockout"); break; case MODE_ERROR: @@ -2448,6 +2457,7 @@ void CMMDVMHost::setMode(unsigned char mode) m_modeTimer.stop(); m_cwIdTimer.stop(); removeLockFile(); + LogMessage("Mode set to Error"); break; default: @@ -2506,6 +2516,7 @@ void CMMDVMHost::setMode(unsigned char mode) m_mode = MODE_IDLE; m_modeTimer.stop(); removeLockFile(); + LogMessage("Mode set to Idle"); break; } }