aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-11-04 22:07:44 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-11-04 22:07:44 -0800
commit0abf58c15f3aaaf14a08694741162d60b6f08c99 (patch)
tree8da6eeb4efa8a9caa4d613488563542b53760774 /src/main
parent82ab9abbefbf1145382fa3ee3141de7386cba30c (diff)
downloadtrackermap-server-0abf58c15f3aaaf14a08694741162d60b6f08c99.tar.gz
trackermap-server-0abf58c15f3aaaf14a08694741162d60b6f08c99.tar.bz2
trackermap-server-0abf58c15f3aaaf14a08694741162d60b6f08c99.zip
Fix ST600STT ignition decoding
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java b/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
index 04113c51e..197e93602 100644
--- a/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
@@ -304,7 +304,7 @@ public class SuntechProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_POWER, Double.parseDouble(values[index++]));
String io = values[index++];
- if (io.length() == 6) {
+ if (io.length() >= 6) {
position.set(Position.KEY_IGNITION, io.charAt(0) == '1');
position.set(Position.PREFIX_IN + 1, io.charAt(1) == '1');
position.set(Position.PREFIX_IN + 2, io.charAt(2) == '1');