From c93517eec6f8feaae0efd596ac767a9159912739 Mon Sep 17 00:00:00 2001 From: TheJoKlLa Date: Fri, 4 Nov 2022 16:59:33 +0100 Subject: [PATCH] Fixed: Stop OTA Bug --- src/FabReader_v2/src/OTAProxy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FabReader_v2/src/OTAProxy.cpp b/src/FabReader_v2/src/OTAProxy.cpp index e6b567b..2498b2b 100644 --- a/src/FabReader_v2/src/OTAProxy.cpp +++ b/src/FabReader_v2/src/OTAProxy.cpp @@ -68,7 +68,7 @@ void OTAProxy::continueOTA(char* topic, byte* payload, unsigned int length) else if(!strcmp(topic, topic_stopOTA)) { Serial.println("Stop OTA"); - while(!(nfc->disconnectCard())); + nfc->disconnectCard(); activeOTA = false; } // else if(!strcmp(topic, topic_restartOTA))