From e346c82a5bba64201b19713488f8f6216f85219d Mon Sep 17 00:00:00 2001 From: Tom Early Date: Sun, 12 Dec 2021 09:02:14 -0700 Subject: [PATCH] fixed error is CSIn() --- reflector/Callsign.cpp | 2 +- reflector/G3Protocol.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reflector/Callsign.cpp b/reflector/Callsign.cpp index 4fec697..ad5495c 100644 --- a/reflector/Callsign.cpp +++ b/reflector/Callsign.cpp @@ -411,7 +411,7 @@ void CCallsign::CSIn() auto pos = m17_alphabet.find(m_Module); m_coded = pos; m_coded *= 40; - for( int i=CALLSIGN_LEN-1; i>=0; i-- ) { + for( int i=CALLSIGN_LEN-2; i>=0; i-- ) { pos = m17_alphabet.find(m_Callsign[i]); if (pos == std::string::npos) { pos = 0; diff --git a/reflector/G3Protocol.cpp b/reflector/G3Protocol.cpp index 68977a0..33f465d 100644 --- a/reflector/G3Protocol.cpp +++ b/reflector/G3Protocol.cpp @@ -243,7 +243,7 @@ void CG3Protocol::ConfigTask(void) { if (memcmp(&Buffer.data()[8], " ", 8) == 0) { - Call.SetCallsign(GetReflectorCallsign(), 8); + Call = GetReflectorCallsign(); } else {