Skip to content

Commit 5b20710

Browse files
authored
Fix: SD_MMC deinit (#5732)
* SD.open() new feature for creating all folders in path This PR adds to the SD.open() function option to create all folders to the file. SD.open(const char* path, const char* mode, const bool create) Default value of create is false. When true folders are created. From issue #5019 * Update vfs_api.cpp memccpy -> memcpy * SD_MMC deinit fix Wrong deinit function was called.
1 parent bd54ee4 commit 5b20710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/SD_MMC/src/SD_MMC.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ bool SDMMCFS::begin(const char * mountpoint, bool mode1bit, bool format_if_mount
5454
host.set_bus_ddr_mode = &sdmmc_host_set_bus_ddr_mode;
5555
host.set_card_clk = &sdmmc_host_set_card_clk;
5656
host.do_transaction = &sdmmc_host_do_transaction;
57-
host.deinit_p = &sdspi_host_remove_device;
57+
host.deinit = &sdmmc_host_deinit;
5858
host.io_int_enable = &sdmmc_host_io_int_enable;
5959
host.io_int_wait = &sdmmc_host_io_int_wait;
6060
host.command_timeout_ms = 0;

0 commit comments

Comments
 (0)