aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Tk103ProtocolDecoder.java
diff options
context:
space:
mode:
authorValerii Vyshniak <valeravi@vi-soft.com.ua>2017-11-22 02:05:59 +0100
committerValerii Vyshniak <valeravi@vi-soft.com.ua>2017-11-22 02:05:59 +0100
commite5a8be1987aecf3735801165ee19c1bcdd4fcc05 (patch)
tree2704face5d94dd5aab2d4d224578ce33fab05dc9 /src/org/traccar/protocol/Tk103ProtocolDecoder.java
parent8d8bab8a2df30629fb612b0573b2bd5f46c4b05e (diff)
downloadtrackermap-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.java2
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")) {
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);
}