diff options
author | Anton Tananaev <anton@traccar.org> | 2023-08-21 21:09:46 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-08-21 21:09:46 -0700 |
commit | cadcd2676adbc1974265acb9ec6d43fc06932824 (patch) | |
tree | f8e2e4c7d6f3c8460c7e1a0d5a57e1c841496fd2 /src/main | |
parent | 9df5d93ba0482b628d05b10c29100144beed5b5d (diff) | |
download | trackermap-server-cadcd2676adbc1974265acb9ec6d43fc06932824.tar.gz trackermap-server-cadcd2676adbc1974265acb9ec6d43fc06932824.tar.bz2 trackermap-server-cadcd2676adbc1974265acb9ec6d43fc06932824.zip |
Atelematics battery level
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/protocol/KhdProtocolDecoder.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/KhdProtocolDecoder.java b/src/main/java/org/traccar/protocol/KhdProtocolDecoder.java index d7c236c4f..dd2e1dbfd 100644 --- a/src/main/java/org/traccar/protocol/KhdProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/KhdProtocolDecoder.java @@ -205,6 +205,9 @@ public class KhdProtocolDecoder extends BaseProtocolDecoder { } } break; + case 0x20: + position.set(Position.KEY_BATTERY_LEVEL, buf.readUnsignedByte()); + break; case 0x23: Network network = new Network(); int count = buf.readUnsignedByte(); |