nyx: fatfs: add failsafes for wrong mkfs usage

This commit is contained in:
CTCaer 2022-05-19 15:17:54 +03:00
parent af22085172
commit 369df25cd3

View file

@ -138,6 +138,18 @@ DRESULT disk_ioctl (
break; break;
} }
} }
else // Catch all for unknown devices.
{
switch (cmd)
{
case CTRL_SYNC:
break;
case GET_SECTOR_COUNT:
case GET_BLOCK_SIZE:
*buf = 0; // Zero value to force default or abort.
break;
}
}
return RES_OK; return RES_OK;
} }