aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/GlobalSatProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/GlobalSatProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/GlobalSatProtocolDecoder.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/GlobalSatProtocolDecoder.java b/src/org/traccar/protocol/GlobalSatProtocolDecoder.java
index 2cef212d1..974fe7699 100644
--- a/src/org/traccar/protocol/GlobalSatProtocolDecoder.java
+++ b/src/org/traccar/protocol/GlobalSatProtocolDecoder.java
@@ -229,10 +229,10 @@ public class GlobalSatProtocolDecoder extends BaseProtocolDecoder {
// Longitude
String hemisphere = parser.group(index++);
- Double lonlitude = Double.valueOf(parser.group(index++));
- lonlitude += Double.valueOf(parser.group(index++)) / 60;
- if (hemisphere.compareTo("W") == 0) lonlitude = -lonlitude;
- position.setLongitude(lonlitude);
+ Double longitude = Double.valueOf(parser.group(index++));
+ longitude += Double.valueOf(parser.group(index++)) / 60;
+ if (hemisphere.compareTo("W") == 0) longitude = -longitude;
+ position.setLongitude(longitude);
// Latitude
hemisphere = parser.group(index++);