Fix SD card init issues

Copy SD lib from arduino-esp32 v2.0.4 to replace SD lib from arduino-esp32 v2.0.0-rc2
This commit is contained in:
Just Call Me Koko
2022-09-07 20:09:03 -04:00
parent d2b8cf76ef
commit 8769103817
14 changed files with 12 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
<!---[![Build Status](https://travis-ci.com/justcallmekoko/ESP32Marauder.svg?branch=master)](https://travis-ci.com/justcallmekoko/ESP32Marauder)---> <!---[![Build Status](https://travis-ci.com/justcallmekoko/ESP32Marauder.svg?branch=master)](https://travis-ci.com/justcallmekoko/ESP32Marauder)--->
<!---Shields/Badges https://shields.io/---> <!---Shields/Badges https://shields.io/--->
# ESP32 Marauder v0.9.13 # ESP32 Marauder v0.9.15
<p align="center"><img alt="Marauder logo" src="https://github.com/justcallmekoko/ESP32Marauder/blob/master/pictures/marauder3L.jpg?raw=true" width="300"></p> <p align="center"><img alt="Marauder logo" src="https://github.com/justcallmekoko/ESP32Marauder/blob/master/pictures/marauder3L.jpg?raw=true" width="300"></p>
<p align="center"> <p align="center">
<b>A suite of WiFi/Bluetooth offensive and defensive tools for the ESP32</b> <b>A suite of WiFi/Bluetooth offensive and defensive tools for the ESP32</b>

View File

@@ -15,6 +15,10 @@ bool SDInterface::initSD() {
return false; return false;
} }
#endif #endif
pinMode(SD_CS, OUTPUT);
delay(10);
if (!SD.begin(SD_CS)) { if (!SD.begin(SD_CS)) {
Serial.println(F("Failed to mount SD Card")); Serial.println(F("Failed to mount SD Card"));

View File

@@ -11,7 +11,7 @@
//#define GENERIC_ESP32 //#define GENERIC_ESP32
#define MARAUDER_FLIPPER #define MARAUDER_FLIPPER
#define MARAUDER_VERSION "v0.9.14" #define MARAUDER_VERSION "v0.9.15"
//// BUTTON DEFINITIONS //// BUTTON DEFINITIONS
#ifdef MARAUDER_MINI #ifdef MARAUDER_MINI

View File

@@ -119,9 +119,15 @@ void setup()
#ifdef HAS_SCREEN #ifdef HAS_SCREEN
digitalWrite(TFT_CS, HIGH); digitalWrite(TFT_CS, HIGH);
#endif #endif
pinMode(SD_CS, OUTPUT);
delay(10);
digitalWrite(SD_CS, HIGH); digitalWrite(SD_CS, HIGH);
delay(10);
Serial.begin(115200); Serial.begin(115200);
//Serial.begin(115200); //Serial.begin(115200);

Binary file not shown.