From 7c682b4a2cdbccb18ed91e6fd17ce8cd60819f26 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 1 Sep 2013 13:00:23 +1200 Subject: Teltonika negative altitude (fix #374) --- src/org/traccar/protocol/TeltonikaProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org') diff --git a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java index 99e923692..3874828ba 100644 --- a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java +++ b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java @@ -137,7 +137,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder { position.setLongitude(buf.readInt() / 10000000.0); position.setLatitude(buf.readInt() / 10000000.0); - position.setAltitude((double) buf.readUnsignedShort()); + position.setAltitude((double) buf.readShort()); position.setCourse((double) buf.readUnsignedShort()); int satellites = buf.readUnsignedByte(); -- cgit v1.2.3