summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/playlist.c8
-rw-r--r--apps/tree.c12
2 files changed, 20 insertions, 0 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 92a7ad979b..0d9df36e32 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -293,6 +293,14 @@ void add_indices_to_playlist(void)
293 if ( playlist.amount >= MAX_PLAYLIST_SIZE ) { 293 if ( playlist.amount >= MAX_PLAYLIST_SIZE ) {
294 if(!playlist.in_ram) 294 if(!playlist.in_ram)
295 close(fd); 295 close(fd);
296
297 lcd_clear_display();
298 lcd_puts(0,0,"10000 file");
299 lcd_puts(0,1,"limit reached");
300 lcd_update();
301 sleep(HZ*2);
302 lcd_clear_display();
303
296 return; 304 return;
297 } 305 }
298 306
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();