diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-12 22:40:08 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-12 22:40:08 +1200 |
commit | 2bd65faa3ca6e78727277c6daa1c97bf01689c8a (patch) | |
tree | 7b58befe624bc147a40df825c1c9e8d9c56190d7 /src/org/traccar/protocol/T55ProtocolDecoder.java | |
parent | 42b570b15a2fbb0d45458fc504ae5042faaf87c2 (diff) | |
download | trackermap-server-2bd65faa3ca6e78727277c6daa1c97bf01689c8a.tar.gz trackermap-server-2bd65faa3ca6e78727277c6daa1c97bf01689c8a.tar.bz2 trackermap-server-2bd65faa3ca6e78727277c6daa1c97bf01689c8a.zip |
Fix typo in decoders
Diffstat (limited to 'src/org/traccar/protocol/T55ProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/T55ProtocolDecoder.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/org/traccar/protocol/T55ProtocolDecoder.java b/src/org/traccar/protocol/T55ProtocolDecoder.java index ba85b8f1a..05a6ad4ae 100644 --- a/src/org/traccar/protocol/T55ProtocolDecoder.java +++ b/src/org/traccar/protocol/T55ProtocolDecoder.java @@ -133,10 +133,10 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder { position.setLatitude(latitude); // Longitude - Double lonlitude = Double.valueOf(parser.group(index++)); - lonlitude += Double.valueOf(parser.group(index++)) / 60; - if (parser.group(index++).compareTo("W") == 0) lonlitude = -lonlitude; - position.setLongitude(lonlitude); + Double longitude = Double.valueOf(parser.group(index++)); + longitude += Double.valueOf(parser.group(index++)) / 60; + if (parser.group(index++).compareTo("W") == 0) longitude = -longitude; + position.setLongitude(longitude); // Speed String speed = parser.group(index++); @@ -201,10 +201,10 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder { position.setLatitude(latitude); // Longitude - Double lonlitude = Double.valueOf(parser.group(index++)); - lonlitude += Double.valueOf(parser.group(index++)) / 60; - if (parser.group(index++).compareTo("W") == 0) lonlitude = -lonlitude; - position.setLongitude(lonlitude); + Double longitude = Double.valueOf(parser.group(index++)); + longitude += Double.valueOf(parser.group(index++)) / 60; + if (parser.group(index++).compareTo("W") == 0) longitude = -longitude; + position.setLongitude(longitude); // Altitude position.setAltitude(0.0); @@ -242,10 +242,10 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder { position.setLatitude(latitude); // Longitude - Double lonlitude = Double.valueOf(parser.group(index++)); - lonlitude += Double.valueOf(parser.group(index++)) / 60; - if (parser.group(index++).compareTo("W") == 0) lonlitude = -lonlitude; - position.setLongitude(lonlitude); + Double longitude = Double.valueOf(parser.group(index++)); + longitude += Double.valueOf(parser.group(index++)) / 60; + if (parser.group(index++).compareTo("W") == 0) longitude = -longitude; + position.setLongitude(longitude); // Speed String speed = parser.group(index++); |