mirror of
https://github.com/Genaker/LoraSA.git
synced 2026-07-04 08:51:18 +02:00
Merge pull request #88 from Genaker/disable-sdcard-flag
use DISABLE_SDCARD to skip sd card functionality
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user