summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-07-26 23:35:15 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-07-26 23:35:15 +0000
commit6a635ce6eda3e3598b2b69e9e45c652b3b5da952 (patch)
tree299228ee3d6329b8ca758da283d0d1ddaad1839c /apps/plugins
parent147d0eb5d4545175f9eec739477dc92c4467da0f (diff)
Adapted to the new event handling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4957 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/battery_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/battery_test.c b/apps/plugins/battery_test.c
index 53e94ad02a..c7dac01a47 100644
--- a/apps/plugins/battery_test.c
+++ b/apps/plugins/battery_test.c
@@ -104,8 +104,8 @@ enum plugin_status loop(void)
#endif
)
return PLUGIN_OK;
- if (button==SYS_USB_CONNECTED) {
- rb->usb_screen();
+
+ if (rb->default_event_handler(button) == SYS_USB_CONNECTED) {
return PLUGIN_USB_CONNECTED;
}
} while (!(button&(BUTTON_REL|BUTTON_REPEAT)));