diff --git a/docs/html/sd___e_s_p32_8cpp_source.html b/docs/html/sd___e_s_p32_8cpp_source.html index 04a5983..e4e53b3 100644 --- a/docs/html/sd___e_s_p32_8cpp_source.html +++ b/docs/html/sd___e_s_p32_8cpp_source.html @@ -122,7 +122,7 @@
- + diff --git a/src/sd_ESP32.cpp b/src/sd_ESP32.cpp index eb19b1b..19f9eaf 100644 --- a/src/sd_ESP32.cpp +++ b/src/sd_ESP32.cpp @@ -63,7 +63,11 @@ int8_t ESP_SD::card_status(bool forcemount) if(!card.isMounted() || forcemount) { card.mount(); } - if (!IS_SD_INSERTED() || !card.isMounted()) { + #ifdef IS_SD_INSERTED + if (!IS_SD_INSERTED() || !card.isMounted()) { + #else + if (!card.isInserted() || !card.isMounted()) { + #endif return 0; //No sd } if ( card.isPrinting() || card.isFileOpen() ) {