aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-04-07 22:10:25 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-04-07 22:10:25 -0700
commit2aaadf1b8c793548558f87465cff50b991181ee1 (patch)
tree47d6da9d7a74d82dc1676dac5adb888ab4cff95d /src/main/java/org/traccar/protocol
parent719608b5553aceb4734b2d376382670049f87951 (diff)
downloadtrackermap-server-2aaadf1b8c793548558f87465cff50b991181ee1.tar.gz
trackermap-server-2aaadf1b8c793548558f87465cff50b991181ee1.tar.bz2
trackermap-server-2aaadf1b8c793548558f87465cff50b991181ee1.zip
Fix second fuel decoding
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
index bf5b6d89a..5ebc721dd 100644
--- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 - 2019 Anton Tananaev (anton@traccar.org)
+ * Copyright 2015 - 2020 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -261,9 +261,8 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder {
buf.readUnsignedByte(); // unused
break;
case 0x0023:
- buf.skipBytes(4); // unused
position.set("fuel2", Double.parseDouble(
- buf.readCharSequence(2, StandardCharsets.US_ASCII).toString()));
+ buf.readCharSequence(6, StandardCharsets.US_ASCII).toString()));
break;
default:
buf.skipBytes(tenetLength - 2);