summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/main.c b/apps/main.c
index 3909000..04f3f78 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -172,12 +172,11 @@ void init(void)
status_init();
usb_start_monitoring();
- power_init();
playlist_init();
tree_init();
- /* This one must be the last one, since it wants the rest of the buffer
- space */
+ /* No buffer allocation (see buffer.c) may take place after the call to
+ mpeg_init() since the mpeg thread takes the rest of the buffer space */
mpeg_init( global_settings.volume,
global_settings.bass,
global_settings.treble,
@@ -186,6 +185,8 @@ void init(void)
global_settings.bass_boost,
global_settings.avc,
global_settings.channel_config );
+
+ power_init();
}
int main(void)