aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-09-01 13:00:23 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-09-01 13:00:23 +1200
commit7c682b4a2cdbccb18ed91e6fd17ce8cd60819f26 (patch)
tree3fb372906db7069840c76ab9d7918a39026d5d95 /src/org/traccar/protocol
parent4b5b368a7bff1d4126458b8032ec313ec28dd911 (diff)
downloadtrackermap-server-7c682b4a2cdbccb18ed91e6fd17ce8cd60819f26.tar.gz
trackermap-server-7c682b4a2cdbccb18ed91e6fd17ce8cd60819f26.tar.bz2
trackermap-server-7c682b4a2cdbccb18ed91e6fd17ce8cd60819f26.zip
Teltonika negative altitude (fix #374)
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/TeltonikaProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
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();