Skip to content

Commit 68e0d3a

Browse files
authored
Fixed the return value bug in sdcard_port.c
Fixed the return value bug in sdcard_port.c
1 parent e596921 commit 68e0d3a

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)