mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 20:56:35 +00:00
reinit sd card (#21040)
This commit is contained in:
parent
03cf7dc460
commit
417f8b0e9b
@ -687,6 +687,19 @@ uDisplay::uDisplay(char *lp) : Renderer(800, 600) {
|
|||||||
ep_mode = 2;
|
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
|
#ifdef UDSP_DEBUG
|
||||||
Serial.printf("Device : %s\n", dname);
|
Serial.printf("Device : %s\n", dname);
|
||||||
Serial.printf("xs : %d\n", gxs);
|
Serial.printf("xs : %d\n", gxs);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user