From 2e56e7d5779a47402780b284ac97e387a364b310 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 27 Mar 2017 07:37:33 +1300 Subject: Store Ruptela event code --- src/org/traccar/protocol/RuptelaProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/traccar/protocol/RuptelaProtocolDecoder.java b/src/org/traccar/protocol/RuptelaProtocolDecoder.java index 5e67acc21..ac95ed27a 100644 --- a/src/org/traccar/protocol/RuptelaProtocolDecoder.java +++ b/src/org/traccar/protocol/RuptelaProtocolDecoder.java @@ -124,9 +124,9 @@ public class RuptelaProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_HDOP, buf.readUnsignedByte() / 10.0); if (type == MSG_EXTENDED_RECORDS) { - buf.readUnsignedShort(); // event + position.set(Position.KEY_EVENT, buf.readUnsignedShort()); } else { - buf.readUnsignedByte(); // event + position.set(Position.KEY_EVENT, buf.readUnsignedByte()); } // Read 1 byte data -- cgit v1.2.3