From: asterix Date: Wed, 28 Sep 2011 11:53:25 +0000 (+0000) Subject: Don't explore the file list until the wav is in playing. X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=49ebddf29a751c3b2bad7158ec705b05bc99aa0f;p=bertos.git Don't explore the file list until the wav is in playing. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5106 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/boards/sam3x-ek/examples/sam3x-ek_codec/main.c b/boards/sam3x-ek/examples/sam3x-ek_codec/main.c index 34c92542..1b9eb58e 100644 --- a/boards/sam3x-ek/examples/sam3x-ek_codec/main.c +++ b/boards/sam3x-ek/examples/sam3x-ek_codec/main.c @@ -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)