forked from len0rd/rockbox
Enable reboot on USB-insert for e200, as it works when done c200-style
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15818 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
09a786138c
commit
5d2757a43f
2 changed files with 1 additions and 3 deletions
|
@ -332,7 +332,7 @@ void system_init(void)
|
|||
void system_reboot(void)
|
||||
{
|
||||
/* Reboot */
|
||||
#ifdef SANSA_C200
|
||||
#if defined(SANSA_E200) || defined(SANSA_C200)
|
||||
CACHE_CTL &= ~CACHE_CTL_VECT_REMAP;
|
||||
|
||||
pp_i2c_send(AS3514_I2C_ADDR, DCDC15, 0x0); /* backlight off */
|
||||
|
|
|
@ -57,7 +57,6 @@ void usb_init_device(void)
|
|||
void usb_enable(bool on)
|
||||
{
|
||||
if (on) {
|
||||
#ifndef SANSA_E200
|
||||
/* until we have native mass-storage mode, we want to reboot on
|
||||
usb host connect */
|
||||
#if defined(IRIVER_H10) || defined (IRIVER_H10_5GB)
|
||||
|
@ -79,7 +78,6 @@ void usb_enable(bool on)
|
|||
|
||||
system_reboot(); /* Reboot */
|
||||
}
|
||||
#endif /* SANSA_E200 */
|
||||
}
|
||||
else
|
||||
usb_core_exit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue