aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-02-25 23:03:37 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-02-25 23:03:37 +1300
commit967b513318d4778b7ae5023e48cb544e2e9579a3 (patch)
tree5458c0342b104bdde775b841e3b195d5d99d53d1 /src/org/traccar/protocol
parent4e1c651633ba76f388e856cc025416a5d5c7ec9f (diff)
downloadtrackermap-server-967b513318d4778b7ae5023e48cb544e2e9579a3.tar.gz
trackermap-server-967b513318d4778b7ae5023e48cb544e2e9579a3.tar.bz2
trackermap-server-967b513318d4778b7ae5023e48cb544e2e9579a3.zip
Implement DTC codes for Ulbotech
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/UlbotechProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/UlbotechProtocolDecoder.java b/src/org/traccar/protocol/UlbotechProtocolDecoder.java
index bf0a9cc76..a5c608dd3 100644
--- a/src/org/traccar/protocol/UlbotechProtocolDecoder.java
+++ b/src/org/traccar/protocol/UlbotechProtocolDecoder.java
@@ -60,8 +60,8 @@ public class UlbotechProtocolDecoder extends BaseProtocolDecoder {
while (buf.readerIndex() < end) {
int parameterLength = buf.getUnsignedByte(buf.readerIndex()) >> 4;
- position.add(ObdDecoder.decode(buf.readUnsignedByte() & 0x0F, buf.readUnsignedByte(),
- ChannelBuffers.hexDump(buf.readBytes(parameterLength - 2))));
+ int mode = buf.readUnsignedByte() & 0x0F;
+ position.add(ObdDecoder.decode(mode, ChannelBuffers.hexDump(buf.readBytes(parameterLength - 1))));
}
}