reinit sd card (#21040)

This commit is contained in:
gemu 2024-03-26 20:30:29 +01:00 committed by GitHub
parent 03cf7dc460
commit 417f8b0e9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 0 deletions

View File

@ -687,6 +687,19 @@ uDisplay::uDisplay(char *lp) : Renderer(800, 600) {
ep_mode = 2;
}
#ifdef USE_ESP32_S3
void UfsCheckSDCardInit(void);
if (spec_init == _UDSP_SPI) {
// special case, assuming sd card and display on same spi bus
// end spi in case it was running
SPI.end();
// reininit SD card
UfsCheckSDCardInit();
}
#endif
#ifdef UDSP_DEBUG
Serial.printf("Device : %s\n", dname);
Serial.printf("xs : %d\n", gxs);