mmc_card: update to new FatFS API
This commit is contained in:
parent
5aaf0e5f44
commit
1acff71d5e
|
@ -653,8 +653,8 @@ static NO_CACHE BYTE formatBuff[FATFS_CLUSTER_SIZE];
|
||||||
|
|
||||||
static bool sdFormat()
|
static bool sdFormat()
|
||||||
{
|
{
|
||||||
//FRESULT ret = f_mkfs("", FM_ANY, 1024, formatBuff, sizeof(formatBuff));
|
//FRESULT ret = f_mkfs("", nullptr, formatBuff, sizeof(formatBuff));
|
||||||
FRESULT ret = f_mkfs("", FM_FAT | FM_FAT32, 1024, formatBuff, sizeof(formatBuff));
|
FRESULT ret = f_mkfs("", nullptr, formatBuff, sizeof(formatBuff));
|
||||||
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
printError("format failed", ret);
|
printError("format failed", ret);
|
||||||
|
|
Loading…
Reference in New Issue