From 04c087935a2bd4b703134d86bbe9456e6930c287 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 21 Mar 2017 04:57:55 +1300 Subject: Handle DMT messages without location --- src/org/traccar/protocol/DmtProtocolDecoder.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/org/traccar/protocol') 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); } -- cgit v1.2.3