Don't explore the file list until the wav is in playing.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 28 Sep 2011 11:53:25 +0000 (11:53 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 28 Sep 2011 11:53:25 +0000 (11:53 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5106 38d2e660-2303-0410-9eaa-f027e97ec537

boards/sam3x-ek/examples/sam3x-ek_codec/main.c

index 34c9254217a873c41e6ffbfc1e1ec814d315a9fe..1b9eb58e2be857754d4d1244f7bde8170f541197 100644 (file)
@@ -441,7 +441,7 @@ static void play_menu(Bitmap *bm)
        while (1)
        {
                keymask_t key = kbd_peek();
-               if (key & K_LEFT)
+               if ((key & K_LEFT) && !is_playing)
                {
                        idx++;
                        if (idx > file_list_size)