Skip to content

Commit 3fb21aa

Browse files
committed
Fixed SDIO write
1 parent b645c50 commit 3fb21aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/drivers/stm32_sdio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ sdio_block_write(struct fnode *fno, void *_buf, uint32_t lba, int offset, int co
596596
SDIO_DLEN = 512;
597597
SDIO_DCTRL = SDIO_DCTRL_DBLOCKSIZE_9 |
598598
SDIO_DCTRL_DTEN;
599-
err = stm32_sdio_command(24, addr);
599+
err = stm32_sdio_command(24, addr + offset);
600600
if (! err) {
601601
data_len = 0;
602602
do {

0 commit comments

Comments
 (0)