diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-20 20:22:49 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-20 20:22:49 +1200 |
commit | 4aa19cf3ab240abb7dc9c16240d993f5b525edaa (patch) | |
tree | dcc7c71974c4397100cce9e1760fb5cbf0348c45 /src/org | |
parent | 51b475ce8920f0340560749f779f1acfd3914911 (diff) | |
download | traccar-server-4aa19cf3ab240abb7dc9c16240d993f5b525edaa.tar.gz traccar-server-4aa19cf3ab240abb7dc9c16240d993f5b525edaa.tar.bz2 traccar-server-4aa19cf3ab240abb7dc9c16240d993f5b525edaa.zip |
Fix GlobalSat decoder
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/GlobalSatProtocolDecoder.java | 4 |
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': |