From 74d366e3dc82e1a5854efd905b6a72201dbde89c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 29 Apr 2019 22:52:33 -0700 Subject: Decode additional fields --- src/main/java/org/traccar/protocol/RadarProtocolDecoder.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/java/org') 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); -- cgit v1.2.3