From e40a2518d2751461cd4d7fe72407098b50926fc8 Mon Sep 17 00:00:00 2001 From: Alessio Cosenza Date: Thu, 27 Feb 2020 12:08:51 +0100 Subject: [PATCH] fix: FreeRTOS critical error in Arancino.begin() --- src/Arancino.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Arancino.cpp b/src/Arancino.cpp index 23be212..ba1103a 100644 --- a/src/Arancino.cpp +++ b/src/Arancino.cpp @@ -104,7 +104,7 @@ void ArancinoClass::begin(int timeout) { { packet = communicationErrorPacket; } - std::free(message); + }while (packet.isError == true || packet.responseCode != RSP_OK); std::free(str);