diff options
author | Anton Tananaev <anton@traccar.org> | 2023-05-09 08:19:24 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-05-09 08:19:24 -0700 |
commit | 4c57f717f678969a46d9d84538a3116018dce9c1 (patch) | |
tree | 974ef0283e9906ce98aa0a13edb6177d7121eb55 /src/main/java | |
parent | e2402983eb53f6cd384cdd09cc0d217772023b9a (diff) | |
download | trackermap-server-4c57f717f678969a46d9d84538a3116018dce9c1.tar.gz trackermap-server-4c57f717f678969a46d9d84538a3116018dce9c1.tar.bz2 trackermap-server-4c57f717f678969a46d9d84538a3116018dce9c1.zip |
Use last location info
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java index f0b7cf6ca..fcbb55043 100644 --- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java @@ -911,8 +911,8 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder { break; } } + getLastLocation(position, time); decodeCoordinates(position, buf); - position.setTime(time); break; case 0x02: count = buf.readUnsignedByte(); @@ -923,6 +923,7 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder { buf.skipBytes(16); // code } } + getLastLocation(position, time); decodeCoordinates(position, buf); break; case 0x03: @@ -953,8 +954,8 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder { } buf.skipBytes(length); } + getLastLocation(position, time); decodeCoordinates(position, buf); - position.setTime(time); break; case 0x0B: if (buf.readUnsignedByte() > 0) { |