aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-09-29 20:37:47 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-09-29 20:37:53 -0700
commitc1b406b6fcc442f96f9698774f5544ec9a0588e9 (patch)
tree1b19ced6ce32b15fbf57282ef098210f83e0ae7c /src/main
parent8c2db11e30211339d406299b0dbbe6561fe4d0bd (diff)
downloadtrackermap-server-c1b406b6fcc442f96f9698774f5544ec9a0588e9.tar.gz
trackermap-server-c1b406b6fcc442f96f9698774f5544ec9a0588e9.tar.bz2
trackermap-server-c1b406b6fcc442f96f9698774f5544ec9a0588e9.zip
Decode ADC values
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
index 4d77d554e..05411addf 100644
--- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
@@ -333,6 +333,10 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder {
Position.KEY_VIN, buf.readCharSequence(length, StandardCharsets.US_ASCII).toString());
}
break;
+ case 0xA7:
+ position.set(Position.PREFIX_ADC + 1, buf.readUnsignedShort());
+ position.set(Position.PREFIX_ADC + 2, buf.readUnsignedShort());
+ break;
case 0xAC:
position.set(Position.KEY_ODOMETER, buf.readUnsignedInt());
break;