aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorEdward Valley <ed.valley@yandex.com>2019-07-12 13:26:48 -0400
committerEdward Valley <ed.valley@yandex.com>2019-07-12 13:26:48 -0400
commit1da58124acf0ce8c820b78519d17c2a408aced24 (patch)
treebcbba149af68e787847053b2c705363a12707541 /src/main
parent4fd816d4fcd35b1ab59857c3662d592a23372d94 (diff)
downloadtrackermap-server-1da58124acf0ce8c820b78519d17c2a408aced24.tar.gz
trackermap-server-1da58124acf0ce8c820b78519d17c2a408aced24.tar.bz2
trackermap-server-1da58124acf0ce8c820b78519d17c2a408aced24.zip
Avoid directly handling ignition attribute
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java b/src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java
index 7c73ee7be..2302015f5 100644
--- a/src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java
@@ -99,17 +99,12 @@ public class LaipacProtocolDecoder extends BaseProtocolDecoder {
private String decodeEvent(String event, Position position) {
- position.set(Position.KEY_IGNITION, false);
-
if (event.length() == 1) {
char inputStatus = event.charAt(0);
if (inputStatus >= 'A' && inputStatus <= 'D') {
int inputStatusInt = inputStatus - 'A';
position.set(Position.PREFIX_IN + 1, inputStatusInt & 1);
position.set(Position.PREFIX_IN + 2, inputStatusInt & 2);
- if ((inputStatusInt & 1) != 0) {
- position.set(Position.KEY_IGNITION, true);
- }
return null;
}
}