From 0a8d0110d5d3876a292d6ea8213e62e4bb98c252 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 29 Aug 2017 04:56:25 +1200 Subject: Save single position when ignore fix time --- src/org/traccar/protocol/Gl200TextProtocolDecoder.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/org/traccar/protocol/Gl200TextProtocolDecoder.java b/src/org/traccar/protocol/Gl200TextProtocolDecoder.java index 3bee39cc4..e05182022 100644 --- a/src/org/traccar/protocol/Gl200TextProtocolDecoder.java +++ b/src/org/traccar/protocol/Gl200TextProtocolDecoder.java @@ -562,6 +562,10 @@ public class Gl200TextProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_FUEL_LEVEL, parser.nextInt()); decodeDeviceTime(position, parser); + if (ignoreFixTime) { + positions.clear(); + positions.add(position); + } return positions; } @@ -620,6 +624,10 @@ public class Gl200TextProtocolDecoder extends BaseProtocolDecoder { } decodeDeviceTime(position, parser); + if (ignoreFixTime) { + positions.clear(); + positions.add(position); + } return positions; } -- cgit v1.2.3