aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/EelinkProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-12-06 14:57:42 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-12-06 14:57:42 +1300
commite3f7a20c29a38dae64ffe0ab7724cc9df29a03f1 (patch)
tree5fb5651ac53ed39a94959e91598a40c7bb893ab0 /src/org/traccar/protocol/EelinkProtocolDecoder.java
parent9ec8be4360ad3088af66d9fd432d9a85cd0ee074 (diff)
downloadtrackermap-server-e3f7a20c29a38dae64ffe0ab7724cc9df29a03f1.tar.gz
trackermap-server-e3f7a20c29a38dae64ffe0ab7724cc9df29a03f1.tar.bz2
trackermap-server-e3f7a20c29a38dae64ffe0ab7724cc9df29a03f1.zip
Support eelink messages without GPS
Diffstat (limited to 'src/org/traccar/protocol/EelinkProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/EelinkProtocolDecoder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/EelinkProtocolDecoder.java b/src/org/traccar/protocol/EelinkProtocolDecoder.java
index 159a93d9b..98a9f7d6d 100644
--- a/src/org/traccar/protocol/EelinkProtocolDecoder.java
+++ b/src/org/traccar/protocol/EelinkProtocolDecoder.java
@@ -190,6 +190,8 @@ public class EelinkProtocolDecoder extends BaseProtocolDecoder {
position.setSpeed(UnitsConverter.knotsFromKph(buf.readUnsignedShort()));
position.setCourse(buf.readUnsignedShort());
position.set(Position.KEY_SATELLITES, buf.readUnsignedByte());
+ } else {
+ getLastLocation(position, position.getDeviceTime());
}
if (BitUtil.check(flags, 1)) {