aciodrv: address some magic numbers with felica polling

This commit is contained in:
Will Xyen
2021-03-17 14:42:14 -07:00
parent f9b37c7a72
commit 9cef7c03d0
2 changed files with 7 additions and 5 deletions
+4 -1
View File
@@ -5,6 +5,9 @@
#include "aciodrv/icca.h"
#define IDLE_RESPONSES_BETWEEN_FELICA_POLLS 5
struct icca_handler_ctx {
bool init;
bool slotted_reader;
@@ -114,7 +117,7 @@ bool aciotest_icca_handler_update(
++icca_ctx->last_poll;
}
if (icca_ctx->last_poll >= 5) {
if (icca_ctx->last_poll >= IDLE_RESPONSES_BETWEEN_FELICA_POLLS) {
if (!aciodrv_icca_poll_felica(device, node_id)) {
return false;
}