diff options
author | Valerii Vyshniak <valeravi@vi-soft.com.ua> | 2017-11-22 02:05:59 +0100 |
---|---|---|
committer | Valerii Vyshniak <valeravi@vi-soft.com.ua> | 2017-11-22 02:05:59 +0100 |
commit | e5a8be1987aecf3735801165ee19c1bcdd4fcc05 (patch) | |
tree | 2704face5d94dd5aab2d4d224578ce33fab05dc9 /src/org/traccar/protocol/Tk103ProtocolDecoder.java | |
parent | 8d8bab8a2df30629fb612b0573b2bd5f46c4b05e (diff) | |
download | trackermap-server-e5a8be1987aecf3735801165ee19c1bcdd4fcc05.tar.gz trackermap-server-e5a8be1987aecf3735801165ee19c1bcdd4fcc05.tar.bz2 trackermap-server-e5a8be1987aecf3735801165ee19c1bcdd4fcc05.zip |
T580W: review comments fixes 3, re-implemented tk103 frame decoder
Diffstat (limited to 'src/org/traccar/protocol/Tk103ProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/Tk103ProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Tk103ProtocolDecoder.java b/src/org/traccar/protocol/Tk103ProtocolDecoder.java index 2ce7def45..2fc6bf8d5 100644 --- a/src/org/traccar/protocol/Tk103ProtocolDecoder.java +++ b/src/org/traccar/protocol/Tk103ProtocolDecoder.java @@ -353,7 +353,7 @@ public class Tk103ProtocolDecoder extends BaseProtocolDecoder { sentence = sentence.substring(beginIndex + 1); } - if (channel != null && sentence.length() >= 16) { + if (channel != null) { String id = sentence.substring(0, 12); String type = sentence.substring(12, 16); if (type.equals("BP00")) { |