aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MeitrackProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-26 12:11:58 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-26 12:11:58 +1300
commitefa23587b3ca8ea0c08e418a4c445cfa0062f110 (patch)
tree28f27abda4574ee07c1db4ef7449218a78de5497 /src/org/traccar/protocol/MeitrackProtocolDecoder.java
parent39650cf5e3fa32f767dac5ce0ee066e8e4906945 (diff)
downloadtrackermap-server-efa23587b3ca8ea0c08e418a4c445cfa0062f110.tar.gz
trackermap-server-efa23587b3ca8ea0c08e418a4c445cfa0062f110.tar.bz2
trackermap-server-efa23587b3ca8ea0c08e418a4c445cfa0062f110.zip
Modify Meitrack frame decoder
Diffstat (limited to 'src/org/traccar/protocol/MeitrackProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/MeitrackProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/org/traccar/protocol/MeitrackProtocolDecoder.java
index f8eb6ed91..3aae0542b 100644
--- a/src/org/traccar/protocol/MeitrackProtocolDecoder.java
+++ b/src/org/traccar/protocol/MeitrackProtocolDecoder.java
@@ -267,7 +267,7 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder {
ChannelBuffer buf = (ChannelBuffer) msg;
// Find type
- Integer index = buf.indexOf(buf.readerIndex(), buf.writerIndex(), (byte) ',');
+ int index = buf.indexOf(buf.readerIndex(), buf.writerIndex(), (byte) ',');
index = buf.indexOf(index + 1, buf.writerIndex(), (byte) ',');
String type = buf.toString(index + 1, 3, Charset.defaultCharset());