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:
parent
806ce4eb26
commit
af61187587
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue