diff options
author | Anton Tananaev <anton@traccar.org> | 2022-08-12 17:07:31 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-08-12 17:07:31 -0700 |
commit | d8607eb0e840df9df7006f7ae2a15b8b082bf7bf (patch) | |
tree | 798f9b814fdd41b0c836a24f154bd94271e6fa4f /src/main/java/org | |
parent | 4f60122750cc61b5f2112a285036a98957b8273b (diff) | |
download | trackermap-server-d8607eb0e840df9df7006f7ae2a15b8b082bf7bf.tar.gz trackermap-server-d8607eb0e840df9df7006f7ae2a15b8b082bf7bf.tar.bz2 trackermap-server-d8607eb0e840df9df7006f7ae2a15b8b082bf7bf.zip |
Support Suntech ignition
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java | 4 |
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)) { |