Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

diskio.h uses same error code values as FatFs #17

Open
kschwi opened this issue Feb 2, 2018 · 0 comments
Open

diskio.h uses same error code values as FatFs #17

kschwi opened this issue Feb 2, 2018 · 0 comments

Comments

@kschwi
Copy link

kschwi commented Feb 2, 2018

The error codes != 0 are not unique between FatFs and diskio.h. Both use the same values with different meaning. The enum DRESULT should be changed as follows:

/* Results of Disk Functions /
typedef enum {
RES_OK = 0, /
0: Successful /
RES_ERROR=101, /
101: R/W Error /
RES_WRPRT, /
102: Write Protected /
RES_NOTRDY, /
103: Not Ready /
RES_PARERR /
104: Invalid Parameter */
} DRESULT;

This makes porting simpler and gives clear information about about the problem.
Cheers,
Knut

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant