aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-03-27 07:37:33 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-03-27 07:37:33 +1300
commit2e56e7d5779a47402780b284ac97e387a364b310 (patch)
tree5a9b0dedef7d5fdc15eabdc034c2969b9515c1d3 /src/org
parentae6630ed4a88eabc71abd7252edbf6c6c127996a (diff)
downloadtrackermap-server-2e56e7d5779a47402780b284ac97e387a364b310.tar.gz
trackermap-server-2e56e7d5779a47402780b284ac97e387a364b310.tar.bz2
trackermap-server-2e56e7d5779a47402780b284ac97e387a364b310.zip
Store Ruptela event code
Diffstat (limited to 'src/org')
-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