Auto-mount the SDIO SD card (#13879)

This commit is contained in:
Tanguy Pruvot 2019-05-02 07:45:21 +02:00 committed by Scott Lahteine
parent ee243e4edf
commit 51d1e0f1dd

View File

@ -939,6 +939,11 @@ void setup() {
queue_setup(); queue_setup();
#if ENABLED(SDIO_SUPPORT) && SD_DETECT_PIN == -1
// Auto-mount the SD for EEPROM.dat emulation
if (!card.isDetected()) card.initsd();
#endif
// Load data from EEPROM if available (or use defaults) // Load data from EEPROM if available (or use defaults)
// This also updates variables in the planner, elsewhere // This also updates variables in the planner, elsewhere
(void)settings.load(); (void)settings.load();