diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-16 11:33:26 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-16 11:33:26 +1300 |
commit | c7d721cfc55b614ab4bf3d656381b7b590ae99e9 (patch) | |
tree | f43daabf7b46ebb04b9e22946767b5d5f7f95199 /src/org/traccar/BaseProtocolDecoder.java | |
parent | 3563910f1b551c02db5dffc9745bd8aba9cbeeeb (diff) | |
download | trackermap-server-c7d721cfc55b614ab4bf3d656381b7b590ae99e9.tar.gz trackermap-server-c7d721cfc55b614ab4bf3d656381b7b590ae99e9.tar.bz2 trackermap-server-c7d721cfc55b614ab4bf3d656381b7b590ae99e9.zip |
Add outdated position boolean flag
Diffstat (limited to 'src/org/traccar/BaseProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/BaseProtocolDecoder.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/BaseProtocolDecoder.java b/src/org/traccar/BaseProtocolDecoder.java index f8abdcc85..bd91f5e09 100644 --- a/src/org/traccar/BaseProtocolDecoder.java +++ b/src/org/traccar/BaseProtocolDecoder.java @@ -75,6 +75,8 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder { } public void getLastLocation(Position position, Date deviceTime) { + position.setOutdated(true); + Position last = Context.getConnectionManager().getLastPosition(getDeviceId()); if (last != null) { position.setFixTime(last.getFixTime()); |