diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2008-04-20 18:28:25 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2008-04-20 18:28:25 +0000 |
commit | 850a11250a8c5b6825b080ff843f30fd68cb71f6 (patch) | |
tree | d236674a20fccc8002edeafa30d210b5c972327d /apps/main.c | |
parent | cea07eb2a4ddb72d084c7085192521613004a997 (diff) | |
download | rockbox-850a11250a8c5b6825b080ff843f30fd68cb71f6.tar.gz rockbox-850a11250a8c5b6825b080ff843f30fd68cb71f6.zip |
Adding new setting to System Settings <Accessory Power Supply -- off by default). This setting can be used to enable/disable the power supply for accessories. With this commit implemented for iPods with PCF50605 power controller.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17193 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/main.c')
-rw-r--r-- | apps/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/main.c b/apps/main.c index 8b1e2e4556..e84a672476 100644 --- a/apps/main.c +++ b/apps/main.c | |||
@@ -583,6 +583,9 @@ static void init(void) | |||
583 | #if CONFIG_CHARGING | 583 | #if CONFIG_CHARGING |
584 | car_adapter_mode_init(); | 584 | car_adapter_mode_init(); |
585 | #endif | 585 | #endif |
586 | #ifdef HAVE_ACCESSORY_SUPPLY | ||
587 | accessory_supply_set(global_settings.accessory_supply); | ||
588 | #endif | ||
586 | } | 589 | } |
587 | 590 | ||
588 | #ifdef CPU_PP | 591 | #ifdef CPU_PP |