From ccefc3b345e0943bedf49ce515106b1f210971f1 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 22 Oct 2015 16:46:57 +1300 Subject: Fix GT06 decoder hemisphere issue --- src/org/traccar/protocol/Gt06ProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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)) { -- cgit v1.2.3