diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2006-11-27 02:16:32 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2006-11-27 02:16:32 +0000 |
| commit | 0e6dd7efcd21d48665b5a799fe081a75cdcb960f (patch) | |
| tree | 9c0db844416a114adebb725f6172e38009b317f8 /apps/plugins/battery_bench.c | |
| parent | e43f56b58d8540492d83b44abfdf4c758b0e74bf (diff) | |
| download | rockbox-0e6dd7efcd21d48665b5a799fe081a75cdcb960f.zip rockbox-0e6dd7efcd21d48665b5a799fe081a75cdcb960f.tar.gz rockbox-0e6dd7efcd21d48665b5a799fe081a75cdcb960f.tar.bz2 rockbox-0e6dd7efcd21d48665b5a799fe081a75cdcb960f.tar.xz | |
Moved archos button reading to target tree. * Cleanup of button.[ch]. * Deactivated serial remote code for recorder FM/V2 as there is no remote pin, saving ~500 bytes of code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11612 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/battery_bench.c')
| -rw-r--r-- | apps/plugins/battery_bench.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c index c9c289a..9b8871e 100644 --- a/apps/plugins/battery_bench.c +++ b/apps/plugins/battery_bench.c @@ -29,15 +29,17 @@ PLUGIN_HEADER #define EV_EXIT 1337 /* seems to work with 1300, but who knows... */ -#define THREAD_STACK_SIZE DEFAULT_STACK_SIZE + 0x200 +#define THREAD_STACK_SIZE DEFAULT_STACK_SIZE + 0x200 #if CONFIG_KEYPAD == RECORDER_PAD #define BATTERY_ON BUTTON_PLAY -#define BATTERY_RC_ON BUTTON_RC_PLAY - #define BATTERY_OFF BUTTON_OFF + +#if BUTTON_REMOTE != 0 +#define BATTERY_RC_ON BUTTON_RC_PLAY #define BATTERY_RC_OFF BUTTON_RC_STOP +#endif #elif CONFIG_KEYPAD == ONDIO_PAD |