diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-04-29 22:52:33 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-04-29 22:52:33 -0700 |
commit | 74d366e3dc82e1a5854efd905b6a72201dbde89c (patch) | |
tree | b7eaf0ab5d7bf5aa513cb9c888f385082ce9aae6 /src/main/java/org | |
parent | 6e0c20ed4dcdd7087b3c6adec312ac5796274ba1 (diff) | |
download | traccar-server-74d366e3dc82e1a5854efd905b6a72201dbde89c.tar.gz traccar-server-74d366e3dc82e1a5854efd905b6a72201dbde89c.tar.bz2 traccar-server-74d366e3dc82e1a5854efd905b6a72201dbde89c.zip |
Decode additional fields
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/protocol/RadarProtocolDecoder.java | 6 |
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); |