aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Gps103ProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/Gps103ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Gps103ProtocolDecoder.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/Gps103ProtocolDecoder.java b/src/org/traccar/protocol/Gps103ProtocolDecoder.java
index 344d985e9..845aa9a8b 100644
--- a/src/org/traccar/protocol/Gps103ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gps103ProtocolDecoder.java
@@ -141,13 +141,13 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder {
position.setLatitude(latitude);
// Longitude
- Double lonlitude = Double.valueOf(parser.group(index++));
- lonlitude += Double.valueOf(parser.group(index++)) / 60;
+ Double longitude = Double.valueOf(parser.group(index++));
+ longitude += Double.valueOf(parser.group(index++)) / 60;
String hemisphere = parser.group(index++);
if (hemisphere != null) {
- if (hemisphere.compareTo("W") == 0) lonlitude = -lonlitude;
+ if (hemisphere.compareTo("W") == 0) longitude = -longitude;
}
- position.setLongitude(lonlitude);
+ position.setLongitude(longitude);
// Altitude
position.setAltitude(0.0);