aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Mta6ProtocolDecoder.java
diff options
context:
space:
mode:
authorjon-stumpf <jon.stumpf@gmail.com>2017-03-04 23:13:37 -0500
committerjon-stumpf <jon.stumpf@gmail.com>2017-03-04 23:13:37 -0500
commit8f61aa2b61b96ff3feee9390be54de4d609051e7 (patch)
treeab34bbc3d34a19310553b06ab481ebb1cf9104ea /src/org/traccar/protocol/Mta6ProtocolDecoder.java
parent55dfb77d4e9fdf749d5310531d9ec44711048c34 (diff)
downloadtrackermap-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/protocol/Mta6ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Mta6ProtocolDecoder.java4
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);