aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
index 4a1324840..8cdc30935 100644
--- a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
@@ -191,13 +191,8 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder {
position.setNetwork(new Network(CellTower.from(mcc, mnc, lac, cid, rssi)));
}
- int input = parser.nextHexInt();
- int output = parser.nextHexInt();
-
- position.set(Position.KEY_IGNITION, BitUtil.check(input, 2));
-
- position.set(Position.KEY_INPUT, input);
- position.set(Position.KEY_OUTPUT, output);
+ position.set(Position.KEY_INPUT, parser.nextHexInt());
+ position.set(Position.KEY_OUTPUT, parser.nextHexInt());
if (parser.hasNext(2)) {
@@ -428,9 +423,7 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_OUTPUT, buf.readUnsignedByte());
break;
case 0x15:
- int input = buf.readUnsignedByte();
- position.set(Position.KEY_IGNITION, BitUtil.check(input, 2));
- position.set(Position.KEY_INPUT, input);
+ position.set(Position.KEY_INPUT, buf.readUnsignedByte());
break;
case 0x97:
position.set(Position.KEY_THROTTLE, buf.readUnsignedByte());