Position parser improvements

legacy
sh123 2022-07-23 17:25:21 +03:00
rodzic c7c3c66038
commit cc68ff48f7
2 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -49,6 +49,7 @@ public class AprsDataPositionReport implements AprsData {
_position = new Position();
_position.srcCallsign = srcCallsign;
_position.dstCallsign = dstCallsign;
_position.status = "";
_position.privacyLevel = 0;
if ((infoData[0] == '/' || infoData[0] == '\\') && fromCompressedBinary(infoData)) {
_position.isCompressed = true;

Wyświetl plik

@ -116,6 +116,8 @@ public class AprsDataPositionReportMicE implements AprsData {
_position.srcCallsign = srcCallsign;
_position.dstCallsign = dstCallsign;
_position.privacyLevel = 0;
_position.status = "";
_position.comment = "";
if (srcCallsign == null || dstCallsign == null) return;
if (dstCallsign.length() < 6 || infoData.length < 8) return;