kopia lustrzana https://github.com/sh123/codec2_talkie
Position parser improvements
rodzic
c7c3c66038
commit
cc68ff48f7
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue