PN532: Queue events through backlog

This commit is contained in:
Andre Thomas 2019-01-09 12:29:12 +02:00 committed by GitHub
parent 95bd91b6db
commit b7f361ebbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -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