aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/XirgoProtocolDecoder.java20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/org/traccar/protocol/XirgoProtocolDecoder.java b/src/org/traccar/protocol/XirgoProtocolDecoder.java
index 1a753cb3e..461503af1 100644
--- a/src/org/traccar/protocol/XirgoProtocolDecoder.java
+++ b/src/org/traccar/protocol/XirgoProtocolDecoder.java
@@ -100,6 +100,18 @@ public class XirgoProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_EVENT, event);
switch (event) {
+ case 4001:
+ case 4003:
+ case 6011:
+ case 6013:
+ position.set(Position.KEY_IGNITION, true);
+ break;
+ case 4002:
+ case 4004:
+ case 6012:
+ case 6014:
+ position.set(Position.KEY_IGNITION, false);
+ break;
case 4005:
position.set(Position.KEY_CHARGE, false);
break;
@@ -121,14 +133,6 @@ public class XirgoProtocolDecoder extends BaseProtocolDecoder {
case 6010:
position.set(Position.KEY_ALARM, Position.ALARM_POWER_RESTORED);
break;
- case 6011:
- case 6013:
- position.set(Position.KEY_IGNITION, true);
- break;
- case 6012:
- case 6014:
- position.set(Position.KEY_IGNITION, false);
- break;
case 6016:
position.set(Position.KEY_ALARM, Position.ALARM_IDLE);
break;