diff options
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r-- | src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java index 2ddb24f5c..0781bd640 100644 --- a/src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 - 2018 Anton Tananaev (anton@traccar.org) + * Copyright 2013 - 2020 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -122,8 +122,9 @@ public class EasyTrackProtocolDecoder extends BaseProtocolDecoder { position.setCourse(parser.nextHexInt(0) / 100.0); long status = parser.nextHexLong(); - position.set(Position.KEY_STATUS, status); position.set(Position.KEY_ALARM, decodeAlarm(status)); + position.set(Position.KEY_IGNITION, BitUtil.check(status, 23)); + position.set(Position.KEY_STATUS, status); position.set("signal", parser.next()); position.set(Position.KEY_POWER, parser.nextDouble(0)); |