Skip to content

Commit 2eaff5b

Browse files
authored
Merge pull request #4353 from DavidLin1577/patch-8
Fixed the return value bug in sdcard_port.c
2 parents 4094b0e + e39789e commit 2eaff5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bsp/stm32/stm32f429-atk-apollo/board/ports/sdcard_port.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Change Logs:
77
* Date Author Notes
88
* 2018-12-13 balanceTWK add sdcard port file
9+
* 2021-02-18 DavidLin Fixed the return bug
910
*/
1011

1112
#include <rtthread.h>
@@ -53,6 +54,7 @@ int stm32_sdcard_mount(void)
5354
else
5455
{
5556
LOG_E("create sd_mount thread err!");
57+
return -RT_ERROR;
5658
}
5759
return RT_EOK;
5860
}

0 commit comments

Comments
 (0)