diff options
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/tree.c b/apps/tree.c index 65ee43396f..30548139ad 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -178,13 +178,7 @@ bool dirbrowse(char *root) | |||
178 | #endif | 178 | #endif |
179 | 179 | ||
180 | while(1) { | 180 | while(1) { |
181 | int key = button_get(); | 181 | switch ( button_get(true) ) { |
182 | |||
183 | if(!key) { | ||
184 | sleep(1); | ||
185 | continue; | ||
186 | } | ||
187 | switch(key) { | ||
188 | #if defined(SIMULATOR) && defined(HAVE_RECODER_KEYPAD) | 182 | #if defined(SIMULATOR) && defined(HAVE_RECODER_KEYPAD) |
189 | case BUTTON_OFF: | 183 | case BUTTON_OFF: |
190 | return false; | 184 | return false; |