From b7f361ebbfdbabd3dabb593a90b64af0f73a9473 Mon Sep 17 00:00:00 2001 From: Andre Thomas Date: Wed, 9 Jan 2019 12:29:12 +0200 Subject: [PATCH] PN532: Queue events through backlog --- sonoff/xsns_40_pn532_i2c.ino | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sonoff/xsns_40_pn532_i2c.ino b/sonoff/xsns_40_pn532_i2c.ino index 1c4a193e1..b02c68591 100644 --- a/sonoff/xsns_40_pn532_i2c.ino +++ b/sonoff/xsns_40_pn532_i2c.ino @@ -441,12 +441,10 @@ void PN532_ScanForTag(void) #ifdef USE_PN532_CAUSE_EVENTS - char command[64]; - sprintf(command,"event PN532_UID=%s",uids); + char command[71]; + sprintf(command,"backlog event PN532_UID=%s;event PN532_DATA=%s",uids,card_datas); ExecuteCommand(command, SRC_RULE); - sprintf(command,"event PN532_DATA=%s",card_datas); - ExecuteCommand(command, SRC_RULE); - + #endif pn532_i2c_scan_defer_report = 7; // Ignore tags found for two seconds