From a88a65e43715b30e3fe98a47cb1bac30e5a580a3 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Thu, 28 Dec 2023 02:18:57 +0700 Subject: [PATCH] Update ESPMegaPRO_OOP.cpp --- Template Project/lib/ESPMegaPRO/ESPMegaPRO_OOP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Template Project/lib/ESPMegaPRO/ESPMegaPRO_OOP.cpp b/Template Project/lib/ESPMegaPRO/ESPMegaPRO_OOP.cpp index 0aa8649..724f0dc 100644 --- a/Template Project/lib/ESPMegaPRO/ESPMegaPRO_OOP.cpp +++ b/Template Project/lib/ESPMegaPRO/ESPMegaPRO_OOP.cpp @@ -30,7 +30,7 @@ void ESPMegaPRO::loop() { } } bool ESPMegaPRO::installCard(uint8_t slot, ExpansionCard* card) { - if (slot > 255) return; + if (slot > 255) return false; if (cardInstalled[slot]) { Serial.println("Card already installed"); return false;