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;