summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index ca2cc84be7..7865e22447 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -485,7 +485,7 @@ static bool ask_resume(bool ask_once)
/* Handle sys events, ignore button releases */
default:
if(default_event_handler(button) == SYS_USB_CONNECTED ||
- (IS_SYSEVENT(button) && !(button & BUTTON_REL)))
+ (!IS_SYSEVENT(button) && !(button & BUTTON_REL)))
stop = true;
break;
}