diff options
| author | Bertrik Sikken <bertrik@sikken.nl> | 2009-03-24 21:59:44 +0000 |
|---|---|---|
| committer | Bertrik Sikken <bertrik@sikken.nl> | 2009-03-24 21:59:44 +0000 |
| commit | 52d298044f087ba726d2717bafb215fad362e347 (patch) | |
| tree | 25a0e49cf8405786ffecab8236410e6749322db4 /apps/plugins | |
| parent | ed1a3355deac93683a25296e573d65729bb3f2e7 (diff) | |
| download | rockbox-52d298044f087ba726d2717bafb215fad362e347.zip rockbox-52d298044f087ba726d2717bafb215fad362e347.tar.gz rockbox-52d298044f087ba726d2717bafb215fad362e347.tar.bz2 rockbox-52d298044f087ba726d2717bafb215fad362e347.tar.xz | |
Enable the charging_status function also for targets with target-specific battery charging.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20521 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/battery_bench.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c index 40b9998..e515ac7 100644 --- a/apps/plugins/battery_bench.c +++ b/apps/plugins/battery_bench.c @@ -271,7 +271,7 @@ static unsigned int charge_state(void) #if CONFIG_CHARGING if (rb->charger_inserted()) ret = BIT_CHARGER; -#if CONFIG_CHARGING == CHARGING_MONITOR +#if CONFIG_CHARGING >= CHARGING_MONITOR if (rb->charging_state()) ret |= BIT_CHARGING; #endif @@ -310,7 +310,7 @@ static bool flush_buffer(void) "%02d:%02d, %04d, " #if CONFIG_CHARGING " %c" -#if CONFIG_CHARGING == CHARGING_MONITOR +#if CONFIG_CHARGING >= CHARGING_MONITOR ", %c" #endif #endif @@ -324,7 +324,7 @@ static bool flush_buffer(void) bat[i].voltage #if CONFIG_CHARGING , (bat[i].flags & BIT_CHARGER) ? 'A' : '-' -#if CONFIG_CHARGING == CHARGING_MONITOR +#if CONFIG_CHARGING >= CHARGING_MONITOR , (bat[i].flags & BIT_CHARGING) ? 'C' : '-' #endif #endif @@ -517,7 +517,7 @@ int main(void) #if CONFIG_CHARGING ", C:" #endif -#if CONFIG_CHARGING == CHARGING_MONITOR +#if CONFIG_CHARGING >= CHARGING_MONITOR ", S:" #endif #ifdef HAVE_USB_POWER |