From facf94eb8b1611e765516d88bd4946993d3139db Mon Sep 17 00:00:00 2001 From: Hristo Kovachev Date: Wed, 25 Jan 2006 20:57:13 +0000 Subject: Button mappings for iPods, using mp3_is_playing() for harware platforms, file format converted to unix git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8453 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/battery_bench.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'apps/plugins') diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c index 3eebb44d8f..56d6575811 100644 --- a/apps/plugins/battery_bench.c +++ b/apps/plugins/battery_bench.c @@ -48,6 +48,12 @@ PLUGIN_HEADER #define BATTERY_OFF BUTTON_OFF #define BATTERY_RC_OFF BUTTON_RC_STOP + +#elif CONFIG_KEYPAD == IPOD_4G_PAD + +#define BATTERY_ON BUTTON_PLAY +#define BATTERY_OFF BUTTON_MENU + #endif @@ -159,8 +165,13 @@ void thread(void) } else { - if(!rb->pcm_is_playing() && - (*rb->current_tick - tick) > DISK_SPINDOWN_TIMEOUT * HZ) + if( +#if CONFIG_CODEC == SWCODEC + !rb->pcm_is_playing() +#else + !rb->mp3_is_playing() +#endif + && (*rb->current_tick - tick) > DISK_SPINDOWN_TIMEOUT * HZ) timeflag = true; if(last_voltage != rb->battery_voltage()) -- cgit v1.2.3