From d1fe746ebf59192baddd705a5faab1328b03ea7e Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 15 Apr 2021 21:43:48 +0200 Subject: [PATCH] felica - select tag , only loop 10 tens --- armsrc/felica.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/armsrc/felica.c b/armsrc/felica.c index a00378881..55995cbb1 100644 --- a/armsrc/felica.c +++ b/armsrc/felica.c @@ -208,9 +208,9 @@ static uint8_t felica_select_card(felica_card_select_t *card) { // 0x00 = timeslot // 0x09 0x21 = crc static uint8_t poll[10] = {0xb2, 0x4d, 0x06, FELICA_POLL_REQ, 0xFF, 0xFF, 0x00, 0x00, 0x09, 0x21}; - int len = 20; + int len = 10; - // We try 20 times, or if answer was received. + // We try 10 times, or if answer was received. do { // end-of-reception response packet data, wait approx. 501μs // end-of-transmission command packet data, wait approx. 197μs