mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-18 01:22:38 -05:00
AMSv2: enable storage write in bootloader
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31355 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2a72e0af30
commit
676708c43f
1 changed files with 0 additions and 10 deletions
|
|
@ -978,17 +978,7 @@ int sd_read_sectors(IF_MD2(int drive,) unsigned long start, int count,
|
||||||
int sd_write_sectors(IF_MD2(int drive,) unsigned long start, int count,
|
int sd_write_sectors(IF_MD2(int drive,) unsigned long start, int count,
|
||||||
const void* buf)
|
const void* buf)
|
||||||
{
|
{
|
||||||
#if defined(BOOTLOADER) /* we don't need write support in bootloader */
|
|
||||||
#ifdef HAVE_MULTIDRIVE
|
|
||||||
(void) drive;
|
|
||||||
#endif
|
|
||||||
(void) start;
|
|
||||||
(void) count;
|
|
||||||
(void) buf;
|
|
||||||
return -1;
|
|
||||||
#else
|
|
||||||
return sd_transfer_sectors(IF_MD2(drive,) start, count, (void*)buf, true);
|
return sd_transfer_sectors(IF_MD2(drive,) start, count, (void*)buf, true);
|
||||||
#endif /* defined(BOOTLOADER) */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef BOOTLOADER
|
#ifndef BOOTLOADER
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue