From c0c7a664cac7af96ac20ca2819d1575c537508de Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 11 Jun 2020 22:00:50 -0700 Subject: Decode EastTrack ignition value --- src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/org') 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)); -- cgit v1.2.3