lib/fatfs/option/ccsbcs: Follow uPy optional features model.
Don't error out when options is not what you support, just skip your code. This allows to make FatFs support properly configurable.
This commit is contained in:
parent
0f5bf1aafe
commit
d402bf299d
|
@ -493,10 +493,7 @@ const WCHAR Tbl[] = { /* CP1258(0x80-0xFF) to Unicode conversion table */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if !_TBLDEF || !_USE_LFN
|
#if _TBLDEF && _USE_LFN
|
||||||
#error This file is not needed in current configuration. Remove from the project.
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
WCHAR ff_convert ( /* Converted character, Returns zero on error */
|
WCHAR ff_convert ( /* Converted character, Returns zero on error */
|
||||||
WCHAR chr, /* Character code to be converted */
|
WCHAR chr, /* Character code to be converted */
|
||||||
|
@ -571,3 +568,5 @@ WCHAR ff_wtoupper ( /* Upper converted character */
|
||||||
|
|
||||||
return tbl_lower[i] ? tbl_upper[i] : chr;
|
return tbl_lower[i] ? tbl_upper[i] : chr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue