diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-08-29 04:56:25 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-08-29 04:56:25 +1200 |
commit | 0a8d0110d5d3876a292d6ea8213e62e4bb98c252 (patch) | |
tree | 5ac0d56a01973e046e4a2ec31ec166728a263c02 /src | |
parent | dc00df637dedfc706e13778937a2fd1ddb38ed3d (diff) | |
download | trackermap-server-0a8d0110d5d3876a292d6ea8213e62e4bb98c252.tar.gz trackermap-server-0a8d0110d5d3876a292d6ea8213e62e4bb98c252.tar.bz2 trackermap-server-0a8d0110d5d3876a292d6ea8213e62e4bb98c252.zip |
Save single position when ignore fix time
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/Gl200TextProtocolDecoder.java | 8 |
1 files changed, 8 insertions, 0 deletions
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; } |