From 14b7897b6df25a144da1a329f4a088b52a01571b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 8 May 2013 23:24:22 +1200 Subject: Fix Teltonika negative coordinates (fix #234) --- src/org/traccar/protocol/TeltonikaProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/org') diff --git a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java index a7bdf6132..d0b07ccb4 100644 --- a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java +++ b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java @@ -73,8 +73,8 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder { extendedInfo.set("priority", buf.readUnsignedByte()); - position.setLongitude(buf.readUnsignedInt() / 10000000.0); - position.setLatitude(buf.readUnsignedInt() / 10000000.0); + position.setLongitude(buf.readInt() / 10000000.0); + position.setLatitude(buf.readInt() / 10000000.0); position.setAltitude((double) buf.readUnsignedShort()); position.setCourse((double) buf.readUnsignedShort()); -- cgit v1.2.3