mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Merge pull request #1054 from niw/fix_disk_read_arg_name
FIX: arg name is changed.
This commit is contained in:
commit
7b7fd25d5d
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ DRESULT disk_read(BYTE drv, BYTE *buf, LBA_t block, UINT count) {
|
||||||
cmd = CMD18; /* READ_MULTIPLE_BLOCK */
|
cmd = CMD18; /* READ_MULTIPLE_BLOCK */
|
||||||
else
|
else
|
||||||
cmd = CMD17; /* READ_SINGLE_BLOCK */
|
cmd = CMD17; /* READ_SINGLE_BLOCK */
|
||||||
if (spisdcardsend_cmd(cmd, sector) == 0) {
|
if (spisdcardsend_cmd(cmd, block) == 0) {
|
||||||
while(count > 0) {
|
while(count > 0) {
|
||||||
if (spisdcardreceive_block(buf) == 0)
|
if (spisdcardreceive_block(buf) == 0)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue