diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-09-01 13:00:23 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-09-01 13:00:23 +1200 |
commit | 7c682b4a2cdbccb18ed91e6fd17ce8cd60819f26 (patch) | |
tree | 3fb372906db7069840c76ab9d7918a39026d5d95 /src/org | |
parent | 4b5b368a7bff1d4126458b8032ec313ec28dd911 (diff) | |
download | traccar-server-7c682b4a2cdbccb18ed91e6fd17ce8cd60819f26.tar.gz traccar-server-7c682b4a2cdbccb18ed91e6fd17ce8cd60819f26.tar.bz2 traccar-server-7c682b4a2cdbccb18ed91e6fd17ce8cd60819f26.zip |
Teltonika negative altitude (fix #374)
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/TeltonikaProtocolDecoder.java | 2 |
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(); |