diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-12-17 00:26:20 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-12-17 00:26:20 -0800 |
commit | ef2bd4662484e4a82bea5afb0d399eed33e859db (patch) | |
tree | 63a6d011ca99294b85a3e0b959ecb2e2f7b53643 /src/main/java | |
parent | 1b30b26b56e3804f34dae87eb69b2291635175d9 (diff) | |
download | trackermap-server-ef2bd4662484e4a82bea5afb0d399eed33e859db.tar.gz trackermap-server-ef2bd4662484e4a82bea5afb0d399eed33e859db.tar.bz2 trackermap-server-ef2bd4662484e4a82bea5afb0d399eed33e859db.zip |
Handle no GPS data
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/protocol/OmnicommProtocolDecoder.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/OmnicommProtocolDecoder.java b/src/main/java/org/traccar/protocol/OmnicommProtocolDecoder.java index dc77dda68..cd8b74c9a 100644 --- a/src/main/java/org/traccar/protocol/OmnicommProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/OmnicommProtocolDecoder.java @@ -123,7 +123,9 @@ public class OmnicommProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_SATELLITES, nav.getGPSNSat()); } - positions.add(position); + if (position.getFixTime() != null) { + positions.add(position); + } } if (positions.isEmpty()) { |