Skip to content

Commit

Permalink
remove spi device before reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
rednblkx committed Nov 22, 2024
1 parent 97a292f commit 2be3ad1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1446,6 +1446,7 @@ void nfc_thread_entry(void* arg) {
uint32_t versiondata = nfc->getFirmwareVersion();
if (!versiondata) {
ESP_LOGE("NFC_SETUP", "Error establishing PN532 connection");
nfc->stop();
xTaskCreate(nfc_retry, "nfc_reconnect_task", 8192, NULL, 1, &nfc_reconnect_task);
vTaskSuspend(NULL);
} else {
Expand Down

0 comments on commit 2be3ad1

Please sign in to comment.