diff options
author | jon-stumpf <jon.stumpf@gmail.com> | 2017-03-04 23:13:37 -0500 |
---|---|---|
committer | jon-stumpf <jon.stumpf@gmail.com> | 2017-03-04 23:13:37 -0500 |
commit | 8f61aa2b61b96ff3feee9390be54de4d609051e7 (patch) | |
tree | ab34bbc3d34a19310553b06ab481ebb1cf9104ea /src/org/traccar | |
parent | 55dfb77d4e9fdf749d5310531d9ec44711048c34 (diff) | |
download | trackermap-server-8f61aa2b61b96ff3feee9390be54de4d609051e7.tar.gz trackermap-server-8f61aa2b61b96ff3feee9390be54de4d609051e7.tar.bz2 trackermap-server-8f61aa2b61b96ff3feee9390be54de4d609051e7.zip |
Replaced hardcoded string with Position.KEY_DEVICE_TEMP in Mta6Protocol;
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/Mta6ProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Mta6ProtocolDecoder.java b/src/org/traccar/protocol/Mta6ProtocolDecoder.java index 7f547f648..da25f9c0d 100644 --- a/src/org/traccar/protocol/Mta6ProtocolDecoder.java +++ b/src/org/traccar/protocol/Mta6ProtocolDecoder.java @@ -182,7 +182,7 @@ public class Mta6ProtocolDecoder extends BaseProtocolDecoder { if (BitUtil.check(flags, 7)) { position.set(Position.KEY_BATTERY, buf.getUnsignedByte(buf.readerIndex()) >> 2); position.set(Position.KEY_POWER, buf.readUnsignedShort() & 0x03ff); - position.set("microcontrollerTemperature", buf.readByte()); + position.set(Position.KEY_DEVICE_TEMP, buf.readByte()); position.set(Position.KEY_RSSI, (buf.getUnsignedByte(buf.readerIndex()) >> 4) & 0x07); @@ -261,7 +261,7 @@ public class Mta6ProtocolDecoder extends BaseProtocolDecoder { if (BitUtil.check(flags, 5)) { position.set(Position.KEY_BATTERY, buf.getUnsignedByte(buf.readerIndex()) >> 2); position.set(Position.KEY_POWER, buf.readUnsignedShort() & 0x03ff); - position.set("microcontrollerTemperature", buf.readByte()); // microcontroller temperature + position.set(Position.KEY_DEVICE_TEMP, buf.readByte()); position.set(Position.KEY_RSSI, buf.getUnsignedByte(buf.readerIndex()) >> 5); |