diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-03-21 04:57:55 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-03-21 04:57:55 +1300 |
commit | 04c087935a2bd4b703134d86bbe9456e6930c287 (patch) | |
tree | d1520ab58757c1ccf2cb0f28dcd35d5f7ce8f144 /src | |
parent | 9ba0e8f826c9edb78beb234192c694b881a4418a (diff) | |
download | trackermap-server-04c087935a2bd4b703134d86bbe9456e6930c287.tar.gz trackermap-server-04c087935a2bd4b703134d86bbe9456e6930c287.tar.bz2 trackermap-server-04c087935a2bd4b703134d86bbe9456e6930c287.zip |
Handle DMT messages without location
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/DmtProtocolDecoder.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/DmtProtocolDecoder.java b/src/org/traccar/protocol/DmtProtocolDecoder.java index 4c641f397..6481255e9 100644 --- a/src/org/traccar/protocol/DmtProtocolDecoder.java +++ b/src/org/traccar/protocol/DmtProtocolDecoder.java @@ -133,6 +133,10 @@ public class DmtProtocolDecoder extends BaseProtocolDecoder { } + if (position.getFixTime() == null) { + getLastLocation(position, position.getDeviceTime()); + } + positions.add(position); } |