aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-02-13 16:45:12 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-02-13 16:45:12 +1300
commit621576edf95c0d3af1919113e62ac1e9245efa88 (patch)
treea7721df8013a4bcb62a5d1c29e467f0b91b1806e /src/org
parent582d431cd4a01bf2a6f826f32f2b93c17fd00a7b (diff)
downloadtrackermap-server-621576edf95c0d3af1919113e62ac1e9245efa88.tar.gz
trackermap-server-621576edf95c0d3af1919113e62ac1e9245efa88.tar.bz2
trackermap-server-621576edf95c0d3af1919113e62ac1e9245efa88.zip
Remove some Teltonika params
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/TeltonikaProtocolDecoder.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
index fc7a8fd3a..4d4d68ec2 100644
--- a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
+++ b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
@@ -82,12 +82,6 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
case 9:
position.set(Position.PREFIX_ADC + 1, buf.readUnsignedShort());
break;
- case 21:
- position.set(Position.KEY_RSSI, buf.readUnsignedByte());
- break;
- case 22:
- position.set("profile", buf.readUnsignedByte());
- break;
case 66:
position.set(Position.KEY_POWER, buf.readUnsignedShort() + "mV");
break;
@@ -95,7 +89,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_BATTERY, buf.readUnsignedShort() + "mV");
break;
case 70:
- position.set("pcbTemp", buf.readInt() * 0.1);
+ position.set("pcbTemp", (length == 4 ? buf.readInt() : buf.readShort()) * 0.1);
break;
case 72:
position.set(Position.PREFIX_TEMP + 1, buf.readInt() * 0.1);