aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-05-08 23:24:22 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-05-08 23:24:22 +1200
commit14b7897b6df25a144da1a329f4a088b52a01571b (patch)
tree3a9e67594db6fab8748b1d5fe295dc5e437609b3 /src/org
parent986912687a15f3d1376beae751a9160c3db5dc7a (diff)
downloadtraccar-server-14b7897b6df25a144da1a329f4a088b52a01571b.tar.gz
traccar-server-14b7897b6df25a144da1a329f4a088b52a01571b.tar.bz2
traccar-server-14b7897b6df25a144da1a329f4a088b52a01571b.zip
Fix Teltonika negative coordinates (fix #234)
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/TeltonikaProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
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());