diff options
Diffstat (limited to 'src/org/traccar/protocol/AquilaProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/AquilaProtocolDecoder.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/AquilaProtocolDecoder.java b/src/org/traccar/protocol/AquilaProtocolDecoder.java index 30f5667af..5ff974a7d 100644 --- a/src/org/traccar/protocol/AquilaProtocolDecoder.java +++ b/src/org/traccar/protocol/AquilaProtocolDecoder.java @@ -161,7 +161,7 @@ public class AquilaProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_FUEL_LEVEL, parser.nextInt()); position.set(Position.PREFIX_IN + 1, parser.next()); - position.set(Position.KEY_CHARGE, parser.next()); + position.set(Position.KEY_CHARGE, parser.next().equals("1")); position.set(Position.PREFIX_IN + 2, parser.next()); position.set(Position.KEY_IGNITION, parser.nextInt(0) == 1); @@ -176,7 +176,7 @@ public class AquilaProtocolDecoder extends BaseProtocolDecoder { position.setCourse(parser.nextInt(0)); - position.set(Position.KEY_CHARGE, parser.next()); + position.set(Position.KEY_CHARGE, parser.next().equals("1")); position.set(Position.KEY_IGNITION, parser.nextInt(0) == 1); position.set(Position.KEY_POWER, parser.nextInt(0)); position.set(Position.KEY_BATTERY, parser.nextInt(0)); @@ -195,7 +195,7 @@ public class AquilaProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_HDOP, parser.nextDouble(0)); position.set(Position.PREFIX_ADC + 1, parser.nextInt(0)); position.set(Position.PREFIX_IN + 1, parser.nextInt(0)); - position.set(Position.KEY_CHARGE, parser.next()); + position.set(Position.KEY_CHARGE, parser.next().equals("1")); position.set(Position.PREFIX_IN + 2, parser.nextInt(0)); position.set(Position.KEY_IGNITION, parser.nextInt(0) == 1); position.set(Position.KEY_POWER, parser.nextInt(0)); |