aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-08-12 17:07:31 -0700
committerAnton Tananaev <anton@traccar.org>2022-08-12 17:07:31 -0700
commitd8607eb0e840df9df7006f7ae2a15b8b082bf7bf (patch)
tree798f9b814fdd41b0c836a24f154bd94271e6fa4f /src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
parent4f60122750cc61b5f2112a285036a98957b8273b (diff)
downloadtrackermap-server-d8607eb0e840df9df7006f7ae2a15b8b082bf7bf.tar.gz
trackermap-server-d8607eb0e840df9df7006f7ae2a15b8b082bf7bf.tar.bz2
trackermap-server-d8607eb0e840df9df7006f7ae2a15b8b082bf7bf.zip
Support Suntech ignition
Diffstat (limited to 'src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java b/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
index 52fdaa05c..f1097abac 100644
--- a/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
@@ -570,7 +570,9 @@ public class SuntechProtocolDecoder extends BaseProtocolDecoder {
}
if (BitUtil.check(mask, 17)) {
- position.set(Position.KEY_INPUT, Integer.parseInt(values[index++]));
+ int input = Integer.parseInt(values[index++]);
+ position.set(Position.KEY_IGNITION, BitUtil.check(input, 0));
+ position.set(Position.KEY_INPUT, input);
}
if (BitUtil.check(mask, 18)) {