aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/protocol/OmnicommProtocolDecoder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/OmnicommProtocolDecoder.java b/src/main/java/org/traccar/protocol/OmnicommProtocolDecoder.java
index 6e9cf52a5..99f5c074c 100644
--- a/src/main/java/org/traccar/protocol/OmnicommProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/OmnicommProtocolDecoder.java
@@ -24,6 +24,7 @@ import org.traccar.BaseProtocolDecoder;
import org.traccar.DeviceSession;
import org.traccar.NetworkMessage;
import org.traccar.Protocol;
+import org.traccar.helper.BitUtil;
import org.traccar.helper.Checksum;
import org.traccar.helper.UnitsConverter;
import org.traccar.model.Position;
@@ -115,6 +116,8 @@ public class OmnicommProtocolDecoder extends BaseProtocolDecoder {
OmnicommMessageOuterClass.OmnicommMessage.General data = message.getGeneral();
position.set(Position.KEY_POWER, data.getUboard() * 0.1);
position.set(Position.KEY_BATTERY_LEVEL, data.getBatLife());
+ position.set(Position.KEY_IGNITION, BitUtil.check(data.getFLG(), 0));
+ position.set(Position.KEY_RPM, data.getTImp());
}
if (message.hasNAV()) {