diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-02-25 23:03:37 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-02-25 23:03:37 +1300 |
commit | 967b513318d4778b7ae5023e48cb544e2e9579a3 (patch) | |
tree | 5458c0342b104bdde775b841e3b195d5d99d53d1 /src/org/traccar/protocol | |
parent | 4e1c651633ba76f388e856cc025416a5d5c7ec9f (diff) | |
download | traccar-server-967b513318d4778b7ae5023e48cb544e2e9579a3.tar.gz traccar-server-967b513318d4778b7ae5023e48cb544e2e9579a3.tar.bz2 traccar-server-967b513318d4778b7ae5023e48cb544e2e9579a3.zip |
Implement DTC codes for Ulbotech
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r-- | src/org/traccar/protocol/UlbotechProtocolDecoder.java | 4 |
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)))); } } |