From 1b9604dd620e1f0f9b0622448d24c07077d173ae Mon Sep 17 00:00:00 2001 From: asterix Date: Wed, 28 Sep 2011 13:40:59 +0000 Subject: [PATCH] Ignore left button while recording. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5109 38d2e660-2303-0410-9eaa-f027e97ec537 --- boards/sam3x-ek/examples/sam3x-ek_codec/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/sam3x-ek/examples/sam3x-ek_codec/main.c b/boards/sam3x-ek/examples/sam3x-ek_codec/main.c index 1b9eb58e..2d49b12a 100644 --- a/boards/sam3x-ek/examples/sam3x-ek_codec/main.c +++ b/boards/sam3x-ek/examples/sam3x-ek_codec/main.c @@ -479,7 +479,7 @@ static void rec_menu(Bitmap *bm) while (1) { keymask_t key = kbd_peek(); - if (key & K_LEFT) + if ((key & K_LEFT) && (!is_recording)) { break; } -- 2.34.1