From 59f466092c9c875c2bbcb70a2a402aad0edd7639 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 4 May 2016 23:16:14 +1200 Subject: Decode Astra reason and status --- src/org/traccar/protocol/AstraProtocolDecoder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/protocol/AstraProtocolDecoder.java b/src/org/traccar/protocol/AstraProtocolDecoder.java index d19b68761..8f40abedf 100644 --- a/src/org/traccar/protocol/AstraProtocolDecoder.java +++ b/src/org/traccar/protocol/AstraProtocolDecoder.java @@ -78,8 +78,9 @@ public class AstraProtocolDecoder extends BaseProtocolDecoder { position.setCourse(buf.readUnsignedByte() * 2); int reason = buf.readUnsignedMedium(); - buf.readUnsignedShort(); // status + position.set(Event.KEY_EVENT, reason); + position.set(Event.KEY_STATUS, buf.readUnsignedShort()); position.set(Event.PREFIX_IO + 1, buf.readUnsignedByte()); position.set(Event.PREFIX_ADC + 1, buf.readUnsignedByte()); position.set(Event.KEY_BATTERY, buf.readUnsignedByte()); -- cgit v1.2.3