aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-12-30 09:05:58 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2021-12-30 09:05:58 -0800
commit6236628bbd0260399b83dc077388f881311e4bc3 (patch)
treef14604e9ab92b65917427092a50992eced3c1e33 /src/main
parentea5d34b5102e75557668f85c6f3124ea5417a219 (diff)
downloadtrackermap-server-6236628bbd0260399b83dc077388f881311e4bc3.tar.gz
trackermap-server-6236628bbd0260399b83dc077388f881311e4bc3.tar.bz2
trackermap-server-6236628bbd0260399b83dc077388f881311e4bc3.zip
Remove incorrect ignition
Diffstat (limited to 'src/main')
-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());