Made FAT error messages more descriptive by including failure reason.
Previous:
Couldn't mount sdb
Failed to open file /ipl.dol
Now:
Couldn't mount sdb: There is no valid FAT volume
Failed to open file /ipl.dol: Could not find the file
I simply copied the comment descriptions of the FRESULT values from ff.h and included them as an array of strings with a few tweaks. The common messages users should see are:
Device is not present (FR_NOT_READY): "Device not ready"
Selected file does not exist (FR_NO_FILE): "Could not find the file"
SD card is not formatted to FAT (FR_NO_FILESYSTEM): "There is no valid FAT volume"
Presumably if there was something weird going on with the user's SD card they could see some of the other error messages which may be useful in diagnosing the issue.
Previous:
Now:
I simply copied the comment descriptions of the FRESULT values from
ff.h
and included them as an array of strings with a few tweaks. The common messages users should see are:Presumably if there was something weird going on with the user's SD card they could see some of the other error messages which may be useful in diagnosing the issue.