aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-08-20 20:22:49 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-08-20 20:22:49 +1200
commit4aa19cf3ab240abb7dc9c16240d993f5b525edaa (patch)
treedcc7c71974c4397100cce9e1760fb5cbf0348c45 /src/org/traccar
parent51b475ce8920f0340560749f779f1acfd3914911 (diff)
downloadtrackermap-server-4aa19cf3ab240abb7dc9c16240d993f5b525edaa.tar.gz
trackermap-server-4aa19cf3ab240abb7dc9c16240d993f5b525edaa.tar.bz2
trackermap-server-4aa19cf3ab240abb7dc9c16240d993f5b525edaa.zip
Fix GlobalSat decoder
Diffstat (limited to 'src/org/traccar')
-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':