diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-04-19 21:35:00 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-04-19 21:35:00 -0700 |
commit | d45729113d11116d1645d26e7606560aecbb8b11 (patch) | |
tree | a2415b3561d69b8063144ab7dbf75f303f962902 /src/main/java/org/traccar/protocol/Gs100ProtocolDecoder.java | |
parent | 827f9e2960f7b9e2a47b9794458621cb40426492 (diff) | |
download | trackermap-server-d45729113d11116d1645d26e7606560aecbb8b11.tar.gz trackermap-server-d45729113d11116d1645d26e7606560aecbb8b11.tar.bz2 trackermap-server-d45729113d11116d1645d26e7606560aecbb8b11.zip |
Fix no location messages
Diffstat (limited to 'src/main/java/org/traccar/protocol/Gs100ProtocolDecoder.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/Gs100ProtocolDecoder.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/Gs100ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gs100ProtocolDecoder.java index d55773785..28a42476c 100644 --- a/src/main/java/org/traccar/protocol/Gs100ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Gs100ProtocolDecoder.java @@ -110,6 +110,10 @@ public class Gs100ProtocolDecoder extends BaseProtocolDecoder { position.setSpeed(Integer.parseInt(other.substring(0, 5))); position.setCourse(Integer.parseInt(other.substring(5, 8))); + } else { + + getLastLocation(position, null); + } positions.add(position); |