aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/YwtProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-08-12 22:40:08 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-08-12 22:40:08 +1200
commit2bd65faa3ca6e78727277c6daa1c97bf01689c8a (patch)
tree7b58befe624bc147a40df825c1c9e8d9c56190d7 /src/org/traccar/protocol/YwtProtocolDecoder.java
parent42b570b15a2fbb0d45458fc504ae5042faaf87c2 (diff)
downloadtrackermap-server-2bd65faa3ca6e78727277c6daa1c97bf01689c8a.tar.gz
trackermap-server-2bd65faa3ca6e78727277c6daa1c97bf01689c8a.tar.bz2
trackermap-server-2bd65faa3ca6e78727277c6daa1c97bf01689c8a.zip
Fix typo in decoders
Diffstat (limited to 'src/org/traccar/protocol/YwtProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/YwtProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/YwtProtocolDecoder.java b/src/org/traccar/protocol/YwtProtocolDecoder.java
index c93545f50..e41932177 100644
--- a/src/org/traccar/protocol/YwtProtocolDecoder.java
+++ b/src/org/traccar/protocol/YwtProtocolDecoder.java
@@ -92,9 +92,9 @@ public class YwtProtocolDecoder extends BaseProtocolDecoder {
// Longitude
String hemisphere = parser.group(index++);
- Double lonlitude = Double.valueOf(parser.group(index++));
- if (hemisphere.compareTo("W") == 0) lonlitude = -lonlitude;
- position.setLongitude(lonlitude);
+ Double longitude = Double.valueOf(parser.group(index++));
+ if (hemisphere.compareTo("W") == 0) longitude = -longitude;
+ position.setLongitude(longitude);
// Latitude
hemisphere = parser.group(index++);