aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-08-30 21:51:57 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-08-30 21:51:57 -0700
commitc08d8c971390446ad20f04e67c7e63c7fe1d767d (patch)
tree951056b76d9ca2f666b03ebc023b31a176aeb8c1 /src/main/java/org/traccar/protocol
parent18a4c32e2c99b5b43e9c8daefd44e50bbd620faa (diff)
downloadtrackermap-server-c08d8c971390446ad20f04e67c7e63c7fe1d767d.tar.gz
trackermap-server-c08d8c971390446ad20f04e67c7e63c7fe1d767d.tar.bz2
trackermap-server-c08d8c971390446ad20f04e67c7e63c7fe1d767d.zip
Decode engine hours
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/HuaShengProtocolDecoder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/HuaShengProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuaShengProtocolDecoder.java
index 8d39abead..f1d146bda 100644
--- a/src/main/java/org/traccar/protocol/HuaShengProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HuaShengProtocolDecoder.java
@@ -190,6 +190,9 @@ public class HuaShengProtocolDecoder extends BaseProtocolDecoder {
position.set(
Position.KEY_VIN, buf.readCharSequence(length, StandardCharsets.US_ASCII).toString());
break;
+ case 0x0011:
+ position.set(Position.KEY_HOURS, buf.readUnsignedInt() * 0.05);
+ break;
case 0x0020:
String[] cells = buf.readCharSequence(
length, StandardCharsets.US_ASCII).toString().split("\\+");