From 4fc1eb3f82f4de27dcd32c08ff0b140f5f96ac3c Mon Sep 17 00:00:00 2001 From: ellensp <530024+ellensp@users.noreply.github.com> Date: Sat, 10 May 2025 01:54:02 +1200 Subject: [PATCH] fix typo --- docs/html/sd___e_s_p32_8cpp_source.html | 2 +- src/sd_ESP32.cpp | 2 +- 2 files changed, 2 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 e4e53b3..a1f5fb9 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 @@
53 }
54 
55 int8_t ESP_SD::card_status(){
-
56 if (!card.isInserted() || !card.isMounted()) return 0; //No sd
+
56 if (!card.isSDCardInserted() || !card.isMounted()) return 0; //No sd
57 if ( card.isPrinting() || card.isFileOpen() ) return -1; // busy
58 return 1; //ok
59 }
diff --git a/src/sd_ESP32.cpp b/src/sd_ESP32.cpp index 19f9eaf..e5ea27c 100644 --- a/src/sd_ESP32.cpp +++ b/src/sd_ESP32.cpp @@ -66,7 +66,7 @@ int8_t ESP_SD::card_status(bool forcemount) #ifdef IS_SD_INSERTED if (!IS_SD_INSERTED() || !card.isMounted()) { #else - if (!card.isInserted() || !card.isMounted()) { + if (!card.isSDCardInserted() || !card.isMounted()) { #endif return 0; //No sd }