aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/MeiligaoProtocolDecoder.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
index 07209a046..43142744c 100644
--- a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
+++ b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
@@ -199,7 +199,9 @@ public class MeiligaoProtocolDecoder extends BaseProtocolDecoder {
for (int i = 0; i < 15; i++) {
long rfid = buf.readUnsignedInt();
if (rfid != 0) {
- position.set(Event.KEY_RFID, String.format("%010d", rfid));
+ String card = String.format("%010d", rfid);
+ position.set("card" + (i + 1), card);
+ position.set(Event.KEY_RFID, card);
}
}
}