fix: fix the inappropriate errno in FatFs

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

Close #I3O8IF
This commit is contained in:
chenjing
2021-04-26 16:18:51 +08:00
parent 806ce4eb26
commit af61187587

View File

@@ -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;