summaryrefslogtreecommitdiff
path: root/apps/plugins/stats.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-06-29 06:48:07 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-06-29 06:48:07 +0000
commit3dcfbc0945c85c66a62aa1c2186c9025bc8c6c52 (patch)
tree50aaa3828bf3c9aac14e266241f344bd2b39cc45 /apps/plugins/stats.c
parent322bfd2f0a6c17e5795045ef9e61f14ffca81446 (diff)
Accept FS#9111 - only exit te stats plugin if the exit button is pressed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17866 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/stats.c')
-rw-r--r--apps/plugins/stats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/stats.c b/apps/plugins/stats.c
index 942dd83de5..21d7862541 100644
--- a/apps/plugins/stats.c
+++ b/apps/plugins/stats.c
@@ -215,8 +215,8 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
rb->backlight_on();
rb->splash(HZ, "Done");
update_screen();
- button = rb->button_get(true);
while (1) {
+ button = rb->button_get(true);
switch (button) {
#ifdef HAVE_REMOTE_LCD
case STATS_STOP_REMOTE:
@@ -230,6 +230,6 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
}
break;
}
- return PLUGIN_OK;
}
+ return PLUGIN_OK;
}