From fc4d79abe902623de8b3b1444298858b89a726b6 Mon Sep 17 00:00:00 2001 From: g0wfv Date: Thu, 8 Jun 2017 10:31:08 +0100 Subject: [PATCH] Alter MSTNAK responses to differentiate stages of retry --- DMRNetwork.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DMRNetwork.cpp b/DMRNetwork.cpp index 422b77a..888b499 100644 --- a/DMRNetwork.cpp +++ b/DMRNetwork.cpp @@ -324,7 +324,7 @@ void CDMRNetwork::clock(unsigned int ms) m_rxData.addData(m_buffer, len); } else if (::memcmp(m_buffer, "MSTNAK", 6U) == 0) { if (m_status == RUNNING) { - LogWarning("%s, The master is restarting, logging back in", m_name); + LogWarning("%s, Login to the master has failed, retrying login ...", m_name); m_status = WAITING_LOGIN; m_timeoutTimer.start(); m_retryTimer.start(); @@ -332,7 +332,7 @@ void CDMRNetwork::clock(unsigned int ms) /* Once the modem death spiral has been prevented in Modem.cpp the Network sometimes times out and reaches here. We want it to reconnect so... */ - LogError("%s, Login to the master has failed, retrying ...", m_name); + LogError("%s, Login to the master has failed, retrying network ...", m_name); close(); open(); return;