1
0
Fork 0
forked from len0rd/rockbox

Moved the free diskspace scan into 'Rockbox Info'. Idea based on patch #4800 by Manuel Dejonghe.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9985 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2006-05-25 13:34:51 +00:00
parent 2311eeaf5c
commit e1beea86d2
4 changed files with 92 additions and 77 deletions

View file

@ -1780,6 +1780,7 @@ static bool dbg_disk_info(void)
/* Wait for a key to be pushed */
key = button_get_w_tmo(HZ*5);
switch(key) {
case SETTINGS_OK:
case SETTINGS_CANCEL:
done = true;
break;
@ -1793,17 +1794,6 @@ static bool dbg_disk_info(void)
if (++page > max_page)
page = 0;
break;
case SETTINGS_OK:
if (page == 3) {
audio_stop(); /* stop playback, to avoid disk access */
lcd_clear_display();
lcd_puts(0,0,"Scanning");
lcd_puts(0,1,"disk...");
lcd_update();
fat_recalc_free(IF_MV(0));
}
break;
}
lcd_stop_scroll();
}