diff options
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-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()) { |