From 6e2cb942f354bca174f3623f4418c41cb8b80877 Mon Sep 17 00:00:00 2001 From: George Bekh-Ivanov Date: Mon, 16 Mar 2020 20:47:00 +0300 Subject: [PATCH] Fix crash on esp8266 I'm not sure if it's correct but looking at the code it seems logical for `true` instead of `false` to be there. Since the name of the function is `isUnformatted` not `isFormatted... --- MifareUltralight.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MifareUltralight.cpp b/MifareUltralight.cpp index c139b7d..70b4b3b 100644 --- a/MifareUltralight.cpp +++ b/MifareUltralight.cpp @@ -93,7 +93,7 @@ boolean MifareUltralight::isUnformatted() #ifdef NDEF_USE_SERIAL Serial.print(F("Error. Failed read page "));Serial.println(page); #endif - return false; + return true; } }