From 07676b0a32bb169315b564eb5140003ebaf62e6b Mon Sep 17 00:00:00 2001 From: ellensp <530024+ellensp@users.noreply.github.com> Date: Sat, 10 May 2025 01:33:38 +1200 Subject: [PATCH] update for latest marlin --- docs/html/sd___e_s_p32_8cpp_source.html | 2 +- src/sd_ESP32.cpp | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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() ) {