提交 af611875 编写于 作者: C chenjing

fix: fix the inappropriate errno in FatFs

The errno of unrecognized fat filesystem changes from ENOENT to ENOTSUP.

Close #I3O8IF
上级 806ce4eb
......@@ -93,10 +93,13 @@ int fatfs_2_vfs(int result)
case FR_NO_FILE:
case FR_NO_PATH:
case FR_NO_FILESYSTEM:
status = ENOENT;
break;
case FR_NO_FILESYSTEM:
status = ENOTSUP;
break;
case FR_INVALID_NAME:
status = EINVAL;
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册