diff options
Diffstat (limited to 'firmware/target/sh/archos/recorder/powermgmt-recorder.c')
-rw-r--r-- | firmware/target/sh/archos/recorder/powermgmt-recorder.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/firmware/target/sh/archos/recorder/powermgmt-recorder.c b/firmware/target/sh/archos/recorder/powermgmt-recorder.c index 0bce1585cd..1e78b8d155 100644 --- a/firmware/target/sh/archos/recorder/powermgmt-recorder.c +++ b/firmware/target/sh/archos/recorder/powermgmt-recorder.c | |||
@@ -65,6 +65,10 @@ int _battery_voltage(void) | |||
65 | return (adc_read(ADC_UNREG_POWER) * BATTERY_SCALE_FACTOR) >> 10; | 65 | return (adc_read(ADC_UNREG_POWER) * BATTERY_SCALE_FACTOR) >> 10; |
66 | } | 66 | } |
67 | 67 | ||
68 | void powermgmt_init_target(void) | ||
69 | { | ||
70 | } | ||
71 | |||
68 | /** Charger control **/ | 72 | /** Charger control **/ |
69 | #ifdef CHARGING_DEBUG_FILE | 73 | #ifdef CHARGING_DEBUG_FILE |
70 | #include "file.h" | 74 | #include "file.h" |
@@ -483,12 +487,12 @@ void charging_algorithm_step(void) | |||
483 | charger_enable(trickle_sec > 0); | 487 | charger_enable(trickle_sec > 0); |
484 | } | 488 | } |
485 | 489 | ||
486 | #ifdef CHARGING_DEBUG_FILE | ||
487 | void charging_algorithm_close(void) | 490 | void charging_algorithm_close(void) |
488 | { | 491 | { |
492 | #ifdef CHARGING_DEBUG_FILE | ||
489 | debug_file_close(); | 493 | debug_file_close(); |
490 | } | ||
491 | #endif /* CHARGING_DEBUG_FILE */ | 494 | #endif /* CHARGING_DEBUG_FILE */ |
495 | } | ||
492 | 496 | ||
493 | /* Returns true if the unit is charging the batteries. */ | 497 | /* Returns true if the unit is charging the batteries. */ |
494 | bool charging_state(void) | 498 | bool charging_state(void) |