aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-06-11 22:00:50 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-06-11 22:00:57 -0700
commitc0c7a664cac7af96ac20ca2819d1575c537508de (patch)
tree9bbca2c4ab37d6bfee022e30fa09ec470580f2ec /src
parentc484205e43e79d0cbc9fa9004f57b1b255120f20 (diff)
downloadtrackermap-server-c0c7a664cac7af96ac20ca2819d1575c537508de.tar.gz
trackermap-server-c0c7a664cac7af96ac20ca2819d1575c537508de.tar.bz2
trackermap-server-c0c7a664cac7af96ac20ca2819d1575c537508de.zip
Decode EastTrack ignition value
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java5
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));