aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-19 14:03:56 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-19 14:03:56 +1200
commit4aa2838cd7a71ee1d0c819ce6a37bd2aaddd233d (patch)
tree5eb11de2b2344cd5fb7f7e70079d8567677940d3 /src/org/traccar/protocol
parent278712a8720e1e93e63063d7854a1767dd06c3f2 (diff)
downloadtraccar-server-4aa2838cd7a71ee1d0c819ce6a37bd2aaddd233d.tar.gz
traccar-server-4aa2838cd7a71ee1d0c819ce6a37bd2aaddd233d.tar.bz2
traccar-server-4aa2838cd7a71ee1d0c819ce6a37bd2aaddd233d.zip
Fix Haicom hemisphere decoding
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/HaicomProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/HaicomProtocolDecoder.java b/src/org/traccar/protocol/HaicomProtocolDecoder.java
index fc144e934..5955ac905 100644
--- a/src/org/traccar/protocol/HaicomProtocolDecoder.java
+++ b/src/org/traccar/protocol/HaicomProtocolDecoder.java
@@ -98,13 +98,13 @@ public class HaicomProtocolDecoder extends BaseProtocolDecoder {
// Latitude
Double latitude = Double.valueOf(parser.group(index++));
latitude += Double.valueOf(parser.group(index++)) / 60000;
- if ((flags & 0x2) == 0) latitude = -latitude;
+ if ((flags & 0x4) == 0) latitude = -latitude;
position.setLatitude(latitude);
// Longitude
Double longitude = Double.valueOf(parser.group(index++));
longitude += Double.valueOf(parser.group(index++)) / 60000;
- if ((flags & 0x4) == 0) longitude = -longitude;
+ if ((flags & 0x2) == 0) longitude = -longitude;
position.setLongitude(longitude);
// Speed