diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-01-24 23:20:13 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-01-24 23:20:13 -0800 |
commit | 5080f966f6221c774604b02f9d40fc48c90e71ca (patch) | |
tree | 508bfdcf58897f676f67b33a2d4c2f24acdc24aa /src/org/traccar | |
parent | 08c744db5dd60956827c6002841c30067ae55744 (diff) | |
download | trackermap-server-5080f966f6221c774604b02f9d40fc48c90e71ca.tar.gz trackermap-server-5080f966f6221c774604b02f9d40fc48c90e71ca.tar.bz2 trackermap-server-5080f966f6221c774604b02f9d40fc48c90e71ca.zip |
Handle no fuel timestamp
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/Gt06ProtocolDecoder.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java index 7c7c485a8..6388455b5 100644 --- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -766,7 +766,9 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { position.set("iccid", ByteBufUtil.hexDump(buf.readSlice(8))); return position; } else if (subType == 0x0d) { - buf.skipBytes(6); + if (buf.getByte(buf.readerIndex()) != '!') { + buf.skipBytes(6); + } return decodeFuelData(position, buf.toString( buf.readerIndex(), buf.readableBytes() - 4 - 2, StandardCharsets.US_ASCII)); } |