SuperHouse / esp-open-rtos

Open source FreeRTOS-based ESP8266 software framework
BSD 3-Clause "New" or "Revised" License
1.52k stars 491 forks source link

Fix for sdio_write_sectors #608

Closed rerobika closed 6 years ago

rerobika commented 6 years ago

The issue was found by using f_mkdir("directory_name"). The function always returned FR_DISK_ERR due to an unhandled case in sdio_write_sectors(). According to this documentation: http://www.convict.lu/pdf/ProdManualSDCardv1.9.pdf#page=92 stop transmission command should be sent after writing multiple blocks. This patch fixes this bug also adds a test case for it.

rerobika commented 6 years ago

@UncleRus please take a look at it.

UncleRus commented 6 years ago

Many thanks! Merging it right now