Merge pull request #174 from AndyTaylorTweet/master

Update YSFGateway.cpp
This commit is contained in:
Jonathan Naylor 2020-05-03 13:28:46 +01:00 committed by GitHub
commit 668cde4b87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -676,7 +676,8 @@ void CYSFGateway::processDTMF(unsigned char* buffer, unsigned char dt)
} else if (raw.length() == 3U) {
id += raw;
} else if (raw.length() == 5U) {
idShort += raw;
id = idShort;
id += raw;
} else {
LogWarning("Nonsense from the DTMF decoder - \"%s\"", raw.c_str());
return;
@ -907,7 +908,8 @@ void CYSFGateway::processRemoteCommands()
if (raw.length() == 3U) {
id += raw;
} else if (raw.length() == 5U) {
idShort += raw;
id = idShort;
id += raw;
} else {
LogWarning("Invalid FCS reflector id - \"%s\"", raw.c_str());
return;