1
0
Fork 0

Update YSFGateway.cpp

improve the FCS 3/5 digit code
ycs232-kbc
Andy Taylor 5 years ago committed by GitHub
parent dcae858099
commit 1ee90cd96a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;

Loading…
Cancel
Save