diff options
Diffstat (limited to 'firmware/target/arm/ipod/power-ipod.c')
-rw-r--r-- | firmware/target/arm/ipod/power-ipod.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/ipod/power-ipod.c b/firmware/target/arm/ipod/power-ipod.c index 76c9fdf5ff..af1ac9fc87 100644 --- a/firmware/target/arm/ipod/power-ipod.c +++ b/firmware/target/arm/ipod/power-ipod.c | |||
@@ -42,6 +42,7 @@ void power_init(void) | |||
42 | #endif | 42 | #endif |
43 | } | 43 | } |
44 | 44 | ||
45 | #if CONFIG_CHARGING | ||
45 | bool charger_inserted(void) | 46 | bool charger_inserted(void) |
46 | { | 47 | { |
47 | #if defined(IPOD_VIDEO) | 48 | #if defined(IPOD_VIDEO) |
@@ -60,6 +61,7 @@ bool charger_inserted(void) | |||
60 | bool charging_state(void) { | 61 | bool charging_state(void) { |
61 | return (GPIOB_INPUT_VAL & 0x01)?false:true; | 62 | return (GPIOB_INPUT_VAL & 0x01)?false:true; |
62 | } | 63 | } |
64 | #endif /* CONFIG_CHARGING */ | ||
63 | 65 | ||
64 | 66 | ||
65 | void ide_power_enable(bool on) | 67 | void ide_power_enable(bool on) |