summaryrefslogtreecommitdiffstats
path: root/apps/plugins/midiplay.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2007-05-19 20:37:02 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2007-05-19 20:37:02 +0000
commita416cc981a14f581ce11035c9796c502495779a3 (patch)
treee0032af59ba3c6711dac441ca6bfe38bbd78bbf7 /apps/plugins/midiplay.c
parent152fafe185ba03b2b5856da591cd053e6617edfa (diff)
downloadrockbox-a416cc981a14f581ce11035c9796c502495779a3.tar.gz
rockbox-a416cc981a14f581ce11035c9796c502495779a3.zip
Prevent idle poweroff in the MIDI player
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13427 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/midiplay.c')
-rw-r--r--apps/plugins/midiplay.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/plugins/midiplay.c b/apps/plugins/midiplay.c
index 8d8b7833af..3feec0fca7 100644
--- a/apps/plugins/midiplay.c
+++ b/apps/plugins/midiplay.c
@@ -277,6 +277,9 @@ int midimain(void * filename)
#endif
rb->yield();
+ /* Prevent idle poweroff */
+ rb->reset_poweroff_timer();
+
/* Code taken from Oscilloscope plugin */
switch(rb->button_get(false))
{