aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/AplicomProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-26 13:29:37 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-26 13:29:37 +1300
commit09b4183fd7ba546209d422d53ea07e273bec26f3 (patch)
tree529c916e244d634870b0d2f01c51efce0e032889 /src/org/traccar/protocol/AplicomProtocolDecoder.java
parent3e56ea6a99e7da5d61c5956876c2d977268e4756 (diff)
downloadtrackermap-server-09b4183fd7ba546209d422d53ea07e273bec26f3.tar.gz
trackermap-server-09b4183fd7ba546209d422d53ea07e273bec26f3.tar.bz2
trackermap-server-09b4183fd7ba546209d422d53ea07e273bec26f3.zip
Use hexDump instead of readHexString
Diffstat (limited to 'src/org/traccar/protocol/AplicomProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/AplicomProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/AplicomProtocolDecoder.java b/src/org/traccar/protocol/AplicomProtocolDecoder.java
index 4f081b2eb..90490cc64 100644
--- a/src/org/traccar/protocol/AplicomProtocolDecoder.java
+++ b/src/org/traccar/protocol/AplicomProtocolDecoder.java
@@ -138,14 +138,14 @@ public class AplicomProtocolDecoder extends BaseProtocolDecoder {
position.set("supply-air-temp-dep1", ChannelBuffers.swapShort(value.readShort()) * 0.1);
break;
case 0x30D:
- position.set("active-alarm", ChannelBufferTools.readHexString(value, 16));
+ position.set("active-alarm", ChannelBuffers.hexDump(value));
break;
case 0x40C:
position.set("air-temp-dep1", ChannelBuffers.swapShort(value.readShort()) * 0.1);
position.set("air-temp-dep2", ChannelBuffers.swapShort(value.readShort()) * 0.1);
break;
case 0x40D:
- position.set("cold-unit-state", ChannelBufferTools.readHexString(value, 16));
+ position.set("cold-unit-state", ChannelBuffers.hexDump(value));
break;
case 0x50C:
position.set("defrost-temp-dep1", ChannelBuffers.swapShort(value.readShort()) * 0.1);