aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-04-29 22:52:33 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-04-29 22:52:33 -0700
commit74d366e3dc82e1a5854efd905b6a72201dbde89c (patch)
treeb7eaf0ab5d7bf5aa513cb9c888f385082ce9aae6 /src/main/java/org
parent6e0c20ed4dcdd7087b3c6adec312ac5796274ba1 (diff)
downloadtrackermap-server-74d366e3dc82e1a5854efd905b6a72201dbde89c.tar.gz
trackermap-server-74d366e3dc82e1a5854efd905b6a72201dbde89c.tar.bz2
trackermap-server-74d366e3dc82e1a5854efd905b6a72201dbde89c.zip
Decode additional fields
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/RadarProtocolDecoder.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/RadarProtocolDecoder.java b/src/main/java/org/traccar/protocol/RadarProtocolDecoder.java
index 765171e9c..b56a081c7 100644
--- a/src/main/java/org/traccar/protocol/RadarProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/RadarProtocolDecoder.java
@@ -172,6 +172,12 @@ public class RadarProtocolDecoder extends BaseProtocolDecoder {
if (mask.get(50)) {
buf.readShort(); // tilt
}
+ if (mask.get(51)) {
+ buf.readUnsignedInt(); // partial hours
+ }
+ if (mask.get(52)) {
+ buf.readUnsignedInt(); // accumulated hours
+ }
if (position.getDeviceTime() != null && position.getFixTime() != null) {
positions.add(position);