aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-06-25 21:37:49 +1200
committerGitHub <noreply@github.com>2018-06-25 21:37:49 +1200
commitc6bda91e2434bfd1a3e63df39dca1e78c16a09c1 (patch)
treeddfbcc58f740092b4de9e34db4aad46d3d8ec20b /src/org/traccar
parent37b76e674f381b3750ba61b3ccfa423ec0c8a2ec (diff)
parent20a46c0a9998f14c8770d9b7797c6a566e28ad94 (diff)
downloadtrackermap-server-c6bda91e2434bfd1a3e63df39dca1e78c16a09c1.tar.gz
trackermap-server-c6bda91e2434bfd1a3e63df39dca1e78c16a09c1.tar.bz2
trackermap-server-c6bda91e2434bfd1a3e63df39dca1e78c16a09c1.zip
Merge pull request #3946 from kevingoos/master
Added validation of other statuses
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/LaipacProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/LaipacProtocolDecoder.java b/src/org/traccar/protocol/LaipacProtocolDecoder.java
index 8634a0e32..9232cd6f0 100644
--- a/src/org/traccar/protocol/LaipacProtocolDecoder.java
+++ b/src/org/traccar/protocol/LaipacProtocolDecoder.java
@@ -115,7 +115,8 @@ public class LaipacProtocolDecoder extends BaseProtocolDecoder {
.setTime(parser.nextInt(0), parser.nextInt(0), parser.nextInt(0));
String status = parser.next();
- position.setValid(status.toUpperCase().equals("A"));
+ String upperCaseStatus = status.toUpperCase();
+ position.setValid(upperCaseStatus.equals("A") || upperCaseStatus.equals("R") || upperCaseStatus.equals("P"));
position.set(Position.KEY_STATUS, status);
position.setLatitude(parser.nextCoordinate());