diff options
-rw-r--r-- | apps/tree.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c index 1faadf69f7..b915b39225 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -591,6 +591,7 @@ static int showdir(char *path, int start, int *dirfilter) | |||
591 | 591 | ||
592 | static bool ask_resume(bool ask_once) | 592 | static bool ask_resume(bool ask_once) |
593 | { | 593 | { |
594 | int button; | ||
594 | bool stop = false; | 595 | bool stop = false; |
595 | 596 | ||
596 | #ifdef HAVE_LCD_CHARCELLS | 597 | #ifdef HAVE_LCD_CHARCELLS |
@@ -618,7 +619,8 @@ static bool ask_resume(bool ask_once) | |||
618 | lcd_update(); | 619 | lcd_update(); |
619 | 620 | ||
620 | while (!stop) { | 621 | while (!stop) { |
621 | switch (button_get(true)) { | 622 | button = button_get(true); |
623 | switch (button) { | ||
622 | case BUTTON_PLAY: | 624 | case BUTTON_PLAY: |
623 | #ifdef BUTTON_RC_PLAY | 625 | #ifdef BUTTON_RC_PLAY |
624 | case BUTTON_RC_PLAY: | 626 | case BUTTON_RC_PLAY: |
@@ -640,7 +642,9 @@ static bool ask_resume(bool ask_once) | |||
640 | break; | 642 | break; |
641 | 643 | ||
642 | default: | 644 | default: |
643 | stop = true; | 645 | /* React only on release events */ |
646 | if(button & BUTTON_REL) | ||
647 | stop = true; | ||
644 | break; | 648 | break; |
645 | } | 649 | } |
646 | } | 650 | } |