aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/RuptelaProtocolDecoder.java4
1 files 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