aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/PstProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/PstProtocolDecoder.java b/src/main/java/org/traccar/protocol/PstProtocolDecoder.java
index 23e2afbbd..68d32636c 100644
--- a/src/main/java/org/traccar/protocol/PstProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/PstProtocolDecoder.java
@@ -50,7 +50,7 @@ public class PstProtocolDecoder extends BaseProtocolDecoder {
long value = buf.readUnsignedInt();
int sign = BitUtil.check(value, 31) ? -1 : 1;
value = BitUtil.to(value, 31);
- return sign * (BitUtil.from(value, 16) + BitUtil.to(value, 16) * 0.00001) / 60;
+ return sign * (BitUtil.from(value, 16) + BitUtil.to(value, 16) / 10000.0) / 60;
}
@Override