Closed eco747 closed 1 year ago
in writecommand, the buffer is not correctly allocated
void Adafruit_PN532::writecommand(uint8_t *cmd, uint8_t cmdlen) { if (spi_dev != NULL) { // SPI command write. uint8_t checksum; uint8_t packet[8 + cmdlen]; <<<<<<<<<<<< here, should be 8+cmdLen+1 uint8_t *p = packet; cmdlen++; <<<<<<<<<<<< because of this
Closing. This is a dupe of #106.
in writecommand, the buffer is not correctly allocated