fix: reset NFC state on API send failure to allow retry

This commit is contained in:
2025-08-29 14:10:49 +02:00
parent 26e905050d
commit bff6e72219
2 changed files with 374 additions and 62 deletions

View File

@@ -346,9 +346,8 @@ void sendToApi(void *parameter) {
break;
}
Serial.println("Fehler beim Senden an Spoolman! HTTP Code: " + String(httpCode));
// TBD: really required?
vTaskDelay(2000 / portTICK_PERIOD_MS);
nfcReaderState = NFC_IDLE; // Reset NFC state to allow retry
}
http.end();