aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/GlobalSatProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/GlobalSatProtocolDecoder.java b/src/org/traccar/protocol/GlobalSatProtocolDecoder.java
index 974fe7699..3d3ecd02e 100644
--- a/src/org/traccar/protocol/GlobalSatProtocolDecoder.java
+++ b/src/org/traccar/protocol/GlobalSatProtocolDecoder.java
@@ -121,13 +121,13 @@ public class GlobalSatProtocolDecoder extends BaseProtocolDecoder {
break;
case '1':
double longitude = Double.valueOf(value.substring(1));
- if (value.charAt(0) == 'E') longitude = -longitude;
+ if (value.charAt(0) == 'W') longitude = -longitude;
position.setLongitude(longitude);
break;
case '2':
longitude = Double.valueOf(value.substring(4)) / 60;
longitude += Integer.valueOf(value.substring(1, 4));
- if (value.charAt(0) == 'E') longitude = -longitude;
+ if (value.charAt(0) == 'W') longitude = -longitude;
position.setLongitude(longitude);
break;
case '3':