Patched FatFS for improved errors report, needed for better Posix compatibility.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15295 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-12-31 11:35:32 +00:00
parent 2b7b971aaa
commit aeec24bfb7
2 changed files with 6 additions and 0 deletions

Binary file not shown.

View File

@ -181,6 +181,12 @@ static msg_t translate_error(FRESULT res) {
case FR_EXIST: case FR_EXIST:
msg = CH_RET_EEXIST; msg = CH_RET_EEXIST;
break; break;
case FR_IS_DIRECTORY:
msg = CH_RET_EISDIR;
break;
case FR_NOT_DIRECTORY:
msg = CH_RET_ENOTDIR;
break;
default: default:
msg = CH_RET_INNER_ERROR; msg = CH_RET_INNER_ERROR;
break; break;