use DISABLE_SDCARD to skip sd card functionality

This commit is contained in:
KonradIT
2024-12-10 13:34:38 +01:00
parent f5ce5b6616
commit 0e31af1906
+3
View File
@@ -706,11 +706,14 @@ void setupBoards(bool disable_u8g2)
beginPower();
bool sdReady;
#ifndef DISABLE_SDCARD
for (int i = 0; i < 5 && !(sdReady = beginSDCard()); i++)
{
Serial.println("SD card failed or not found");
delay(1000);
}
#endif
if (sdReady)
{