aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-05-09 08:19:24 -0700
committerAnton Tananaev <anton@traccar.org>2023-05-09 08:19:24 -0700
commit4c57f717f678969a46d9d84538a3116018dce9c1 (patch)
tree974ef0283e9906ce98aa0a13edb6177d7121eb55 /src/main/java/org
parente2402983eb53f6cd384cdd09cc0d217772023b9a (diff)
downloadtrackermap-server-4c57f717f678969a46d9d84538a3116018dce9c1.tar.gz
trackermap-server-4c57f717f678969a46d9d84538a3116018dce9c1.tar.bz2
trackermap-server-4c57f717f678969a46d9d84538a3116018dce9c1.zip
Use last location info
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java5
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) {