diff --git a/Production/Firmware/aic_pico.uf2 b/Production/Firmware/aic_pico.uf2 index fc87b7b..b6557ce 100644 Binary files a/Production/Firmware/aic_pico.uf2 and b/Production/Firmware/aic_pico.uf2 differ diff --git a/firmware/src/pn5180.c b/firmware/src/pn5180.c index 8247e81..0173e7a 100644 --- a/firmware/src/pn5180.c +++ b/firmware/src/pn5180.c @@ -63,9 +63,9 @@ bool pn5180_init(spi_inst_t *port, uint8_t rx, uint8_t sck, uint8_t tx, spi.nss = nss; spi.busy = busy; - uint8_t buf[4]; - pn5180_read_eeprom(0x10, buf, sizeof(buf)); - return (buf[0] >= 3) && (buf[0] <= 10) && (buf[2] >=3) && (buf[2] <= 10); + uint8_t buf[2]; + pn5180_read_eeprom(0x12, buf, sizeof(buf)); + return (buf[0] <= 15) && (buf[1] >= 2) && (buf[1] <= 15); } static pn5180_wait_loop_t wait_loop = NULL;