diff options
Diffstat (limited to 'src/org/traccar/protocol/YwtProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/YwtProtocolDecoder.java | 6 |
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++); |