aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-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) {