FIX: arg name is changed.

This commit is contained in:
Yoshimasa Niwa 2021-09-30 02:56:19 -07:00
parent 4563ccae18
commit abcf5f1d7b
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ DRESULT disk_read(BYTE drv, BYTE *buf, LBA_t block, UINT count) {
cmd = CMD18; /* READ_MULTIPLE_BLOCK */
else
cmd = CMD17; /* READ_SINGLE_BLOCK */
if (spisdcardsend_cmd(cmd, sector) == 0) {
if (spisdcardsend_cmd(cmd, block) == 0) {
while(count > 0) {
if (spisdcardreceive_block(buf) == 0)
break;