Make correct test and proper use of append #33

feature/ipv6_#35
Geoffrey Merck 3 years ago
parent 3a7cfeb465
commit d24151a932

@ -110,8 +110,8 @@ bool CNMEASentenceCollector::getDataInt(std::string& data)
// 20230425 Fix for https://github.com/F4FXL/DStarGateway/issues/33 // 20230425 Fix for https://github.com/F4FXL/DStarGateway/issues/33
size_t hyphenIndex = fromCall.find('-'); size_t hyphenIndex = fromCall.find('-');
if(hyphenIndex != std::string::npos) { if(hyphenIndex == std::string::npos) {
fromCall = fromCall.append("-5"); fromCall.append("-5");
} }
std::string aprsFrame(fromCall); std::string aprsFrame(fromCall);

Loading…
Cancel
Save

Powered by TurnKey Linux.