feature/ipv6_#35
Geoffrey Merck 3 years ago
parent 867c0485b0
commit d82f1721c9

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

@ -82,6 +82,6 @@ namespace NMEASentenceCollectorTests
m_collector->setMyCall2("5100");
m_collector->getData(data);
EXPECT_TRUE(data.find("N0CALL") != std::string::npos) << "Callsign in APRS frame shall be N0CALL-H";
EXPECT_TRUE(data.find("N0CALL-5") != std::string::npos) << "Callsign in APRS frame shall be N0CALL";
}
}
Loading…
Cancel
Save

Powered by TurnKey Linux.