fixed error is CSIn()

unstable
Tom Early 4 years ago
parent e04633bfd5
commit e346c82a5b

@ -411,7 +411,7 @@ void CCallsign::CSIn()
auto pos = m17_alphabet.find(m_Module); auto pos = m17_alphabet.find(m_Module);
m_coded = pos; m_coded = pos;
m_coded *= 40; 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]); pos = m17_alphabet.find(m_Callsign[i]);
if (pos == std::string::npos) { if (pos == std::string::npos) {
pos = 0; pos = 0;

@ -243,7 +243,7 @@ void CG3Protocol::ConfigTask(void)
{ {
if (memcmp(&Buffer.data()[8], " ", 8) == 0) if (memcmp(&Buffer.data()[8], " ", 8) == 0)
{ {
Call.SetCallsign(GetReflectorCallsign(), 8); Call = GetReflectorCallsign();
} }
else else
{ {

Loading…
Cancel
Save

Powered by TurnKey Linux.