mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-15 03:26:30 +02:00
Set SD state to idle before unregister (reduces power) (#4272)
This commit is contained in:
@ -648,6 +648,7 @@ uint8_t sdcard_uninit(uint8_t pdrv)
|
||||
if (pdrv >= FF_VOLUMES || card == NULL) {
|
||||
return 1;
|
||||
}
|
||||
sdTransaction(pdrv, GO_IDLE_STATE, 0, NULL);
|
||||
ff_diskio_register(pdrv, NULL);
|
||||
s_cards[pdrv] = NULL;
|
||||
esp_err_t err = ESP_OK;
|
||||
|
Reference in New Issue
Block a user