diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-19 11:08:23 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-19 11:08:23 +1200 |
commit | 25e4ce8cdc0b64dade5ddacc29d5d0cf28bebe64 (patch) | |
tree | c3bfef973d51b255055f5ccc99d6c0cd8b0b4789 /src/org | |
parent | e6e6afd89be2f64488e61cd4c1391c898e8f6cc3 (diff) | |
download | trackermap-server-25e4ce8cdc0b64dade5ddacc29d5d0cf28bebe64.tar.gz trackermap-server-25e4ce8cdc0b64dade5ddacc29d5d0cf28bebe64.tar.bz2 trackermap-server-25e4ce8cdc0b64dade5ddacc29d5d0cf28bebe64.zip |
Fix a bug in GL200 decoder (fix #1410)
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/Gl200ProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gl200ProtocolDecoder.java b/src/org/traccar/protocol/Gl200ProtocolDecoder.java index 38b1df1a6..23afa2c4c 100644 --- a/src/org/traccar/protocol/Gl200ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gl200ProtocolDecoder.java @@ -140,7 +140,7 @@ public class Gl200ProtocolDecoder extends BaseProtocolDecoder { // Altitude String altitude = parser.group(index++); - if (speed != null) { + if (altitude != null) { position.setAltitude(Double.valueOf(altitude)); } |