diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-12-06 14:57:42 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-12-06 14:57:42 +1300 |
commit | e3f7a20c29a38dae64ffe0ab7724cc9df29a03f1 (patch) | |
tree | 5fb5651ac53ed39a94959e91598a40c7bb893ab0 /src | |
parent | 9ec8be4360ad3088af66d9fd432d9a85cd0ee074 (diff) | |
download | trackermap-server-e3f7a20c29a38dae64ffe0ab7724cc9df29a03f1.tar.gz trackermap-server-e3f7a20c29a38dae64ffe0ab7724cc9df29a03f1.tar.bz2 trackermap-server-e3f7a20c29a38dae64ffe0ab7724cc9df29a03f1.zip |
Support eelink messages without GPS
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/EelinkProtocolDecoder.java | 2 |
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)) { |