fix: reset NFC state on API send failure to allow retry
This commit is contained in:
1 parent
26e905050d
commit
bff6e72219
2 files changed
+374
-62
No files matched your search
+1
-2
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user