From bb47bdd9795524668a43ddf7f990bb3d7585cd72 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 28 Sep 2023 08:34:29 +0200 Subject: [PATCH] revert back to old timings --- armsrc/i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/armsrc/i2c.c b/armsrc/i2c.c index 7dd2a525d..50ba3e38b 100644 --- a/armsrc/i2c.c +++ b/armsrc/i2c.c @@ -199,7 +199,7 @@ static bool WaitSCL_L(void) { // It timeout reading response from card // Which ever comes first static bool WaitSCL_L_timeout(void) { - volatile uint32_t delay = 800; + volatile uint32_t delay = 1200; while (delay--) { // exit on SCL LOW if (SCL_read == false) @@ -596,7 +596,7 @@ int16_t I2C_BufferRead(uint8_t *data, uint16_t len, uint8_t device_cmd, uint8_t if (readcount < 2 ) { return 0; - } + } // return bytecount - bytes encoding length return readcount - 2; @@ -744,7 +744,7 @@ int I2C_get_version(uint8_t *major, uint8_t *minor) { return PM3_EDEVNOTSUPP; } -// Will read response from smart card module, retries 10 times to get the data. +// Will read response from smart card module, retries 3 times to get the data. bool sc_rx_bytes(uint8_t *dest, uint16_t *destlen, uint32_t wait) { uint8_t i = 10;