aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/protocol/PstProtocolDecoder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/PstProtocolDecoder.java b/src/main/java/org/traccar/protocol/PstProtocolDecoder.java
index f7ac93e1c..a7cb8ef5c 100644
--- a/src/main/java/org/traccar/protocol/PstProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/PstProtocolDecoder.java
@@ -78,6 +78,7 @@ public class PstProtocolDecoder extends BaseProtocolDecoder {
position.setDeviceTime(readDate(buf));
int status = buf.readUnsignedByte();
+ position.set(Position.KEY_BLOCKED, BitUtil.check(status, 4));
position.set(Position.KEY_IGNITION, BitUtil.check(status, 7));
position.set(Position.KEY_STATUS, status);
@@ -100,6 +101,7 @@ public class PstProtocolDecoder extends BaseProtocolDecoder {
}
break;
case 0x10:
+ position.setValid(true);
position.setFixTime(readDate(buf));
position.setLatitude(readCoordinate(buf));
position.setLongitude(readCoordinate(buf));