diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-12-03 14:33:20 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-12-03 14:33:20 +0000 |
commit | 040816d173a633f13601204e4c66401d9468cc8a (patch) | |
tree | d18866c250aa1356aa2170364a1bd5aa88286ba6 | |
parent | f09c5f4c63e51cc05a9737d3d82dac90054a3b5e (diff) | |
download | rockbox-040816d173a633f13601204e4c66401d9468cc8a.tar.gz rockbox-040816d173a633f13601204e4c66401d9468cc8a.zip |
Fixed build.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2914 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/debug_menu.c | 2 | ||||
-rw-r--r-- | firmware/powermgmt.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 772e93229f..571ab09ce5 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -820,7 +820,7 @@ bool view_battery(void) | |||
820 | snprintf(buf, 30, "resulting act.lev: %d%%", battery_level()); | 820 | snprintf(buf, 30, "resulting act.lev: %d%%", battery_level()); |
821 | lcd_puts(0, 5, buf); | 821 | lcd_puts(0, 5, buf); |
822 | 822 | ||
823 | snprintf(buf, 30, "Est. remaining: %d m", powermgmt_est_runningtime_min); | 823 | snprintf(buf, 30, "Est. remaining: %d m", battery_time()); |
824 | lcd_puts(0, 6, buf); | 824 | lcd_puts(0, 6, buf); |
825 | 825 | ||
826 | #ifdef HAVE_CHARGE_CTRL | 826 | #ifdef HAVE_CHARGE_CTRL |
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 0db751161c..3ccb57fcaf 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c | |||
@@ -68,10 +68,12 @@ static int percent_to_volt_nocharge[11] = /* voltages (centivolt) of 0%, 10%, .. | |||
68 | 450, 481, 491, 497, 503, 507, 512, 514, 517, 528, 560 | 68 | 450, 481, 491, 497, 503, 507, 512, 514, 517, 528, 560 |
69 | }; | 69 | }; |
70 | 70 | ||
71 | #ifdef HAVE_CHARGE_CTRL | ||
71 | static int percent_to_volt_charge[11] = /* voltages (centivolt) of 0%, 10%, ... 100% when charging enabled */ | 72 | static int percent_to_volt_charge[11] = /* voltages (centivolt) of 0%, 10%, ... 100% when charging enabled */ |
72 | { | 73 | { |
73 | 476, 544, 551, 556, 561, 564, 566, 576, 582, 584, 585 | 74 | 476, 544, 551, 556, 561, 564, 566, 576, 582, 584, 585 |
74 | }; | 75 | }; |
76 | #endif | ||
75 | 77 | ||
76 | int battery_lazyness[20] = /* how does the battery react when plugging in/out the charger */ | 78 | int battery_lazyness[20] = /* how does the battery react when plugging in/out the charger */ |
77 | { | 79 | { |