Update ESPMegaPRO_OOP.cpp

This commit is contained in:
Siwat Sirichai 2023-12-28 02:18:57 +07:00
parent 1481c08d3a
commit a88a65e437
1 changed files with 1 additions and 1 deletions

View File

@ -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;