diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-22 16:46:57 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-22 16:46:57 +1300 |
commit | ccefc3b345e0943bedf49ce515106b1f210971f1 (patch) | |
tree | 53ce3503b90b2c6e695eafecb142a4ea71ab1a24 /src | |
parent | 1ca95d099df96d576a0eaddc6e42b5b41aed3e06 (diff) | |
download | traccar-server-ccefc3b345e0943bedf49ce515106b1f210971f1.tar.gz traccar-server-ccefc3b345e0943bedf49ce515106b1f210971f1.tar.bz2 traccar-server-ccefc3b345e0943bedf49ce515106b1f210971f1.zip |
Fix GT06 decoder hemisphere issue
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/Gt06ProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java index f30b71c54..50683d94e 100644 --- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -116,7 +116,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { position.setCourse(BitUtil.to(flags, 10)); position.setValid(BitUtil.check(flags, 12)); - if (BitUtil.check(flags, 10)) { + if (!BitUtil.check(flags, 10)) { latitude = -latitude; } if (BitUtil.check(flags, 11)) { |