mirror of
https://github.com/mist-devel/mist-firmware.git
synced 2026-05-04 23:36:16 +00:00
IDE: single block - single block write cmd
This commit is contained in:
5
hdd.c
5
hdd.c
@@ -533,7 +533,10 @@ static inline void ATA_WriteSectors(unsigned char* tfr, unsigned short sector, u
|
||||
case HDF_CARDPART1:
|
||||
case HDF_CARDPART2:
|
||||
case HDF_CARDPART3:
|
||||
MMC_WriteMultiple(lba, sector_buffer, block_size);
|
||||
if (block_size == 1)
|
||||
MMC_Write(lba, sector_buffer);
|
||||
else
|
||||
MMC_WriteMultiple(lba, sector_buffer, block_size);
|
||||
lba+=block_size;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user