aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-01-24 23:20:13 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-01-24 23:20:13 -0800
commit5080f966f6221c774604b02f9d40fc48c90e71ca (patch)
tree508bfdcf58897f676f67b33a2d4c2f24acdc24aa /src
parent08c744db5dd60956827c6002841c30067ae55744 (diff)
downloadtrackermap-server-5080f966f6221c774604b02f9d40fc48c90e71ca.tar.gz
trackermap-server-5080f966f6221c774604b02f9d40fc48c90e71ca.tar.bz2
trackermap-server-5080f966f6221c774604b02f9d40fc48c90e71ca.zip
Handle no fuel timestamp
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/Gt06ProtocolDecoder.java4
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));
}