summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 531f7838aa..8d16806304 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -221,6 +221,18 @@ static int showdir(char *path, int start)
221 strncpy(lastdir,path,sizeof(lastdir)); 221 strncpy(lastdir,path,sizeof(lastdir));
222 lastdir[sizeof(lastdir)-1] = 0; 222 lastdir[sizeof(lastdir)-1] = 0;
223 qsort(dircacheptr,filesindir,sizeof(struct entry*),compare); 223 qsort(dircacheptr,filesindir,sizeof(struct entry*),compare);
224
225 if ( filesindir == MAX_FILES_IN_DIR ) {
226#ifdef HAVE_NEW_CHARCELL_LCD
227 lcd_double_height(false);
228#endif
229 lcd_clear_display();
230 lcd_puts(0,0,"200 file");
231 lcd_puts(0,1,"limit reached");
232 lcd_update();
233 sleep(HZ*2);
234 lcd_clear_display();
235 }
224 } 236 }
225 237
226 lcd_stop_scroll(); 238 lcd_stop_scroll();