diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-12-30 09:05:58 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-12-30 09:05:58 -0800 |
commit | 6236628bbd0260399b83dc077388f881311e4bc3 (patch) | |
tree | f14604e9ab92b65917427092a50992eced3c1e33 | |
parent | ea5d34b5102e75557668f85c6f3124ea5417a219 (diff) | |
download | trackermap-server-6236628bbd0260399b83dc077388f881311e4bc3.tar.gz trackermap-server-6236628bbd0260399b83dc077388f881311e4bc3.tar.bz2 trackermap-server-6236628bbd0260399b83dc077388f881311e4bc3.zip |
Remove incorrect ignition
-rw-r--r-- | src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java | 13 |
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()); |