forked from len0rd/rockbox
Fix rockbox info screen on non-MULTIVOLUME targets
Regression introduced in c3a775c05b
Change-Id: Idd069d6325e3403b4de445856184758d3f8230a5
This commit is contained in:
parent
ed724fecb1
commit
0544d974f9
1 changed files with 6 additions and 3 deletions
|
|
@ -160,13 +160,13 @@ enum infoscreenorder
|
||||||
*/
|
*/
|
||||||
static int refresh_data(struct info_data *info)
|
static int refresh_data(struct info_data *info)
|
||||||
{
|
{
|
||||||
int i;
|
int i = 0;
|
||||||
#ifdef HAVE_MULTIDRIVE
|
#ifdef HAVE_MULTIDRIVE
|
||||||
int drive;
|
int drive;
|
||||||
int max = -1;
|
int max = -1;
|
||||||
#endif
|
|
||||||
|
|
||||||
for (i = 0 ; CHECK_VOL(i) ; i++) {
|
for (i = 0 ; CHECK_VOL(i) ; i++) {
|
||||||
|
#endif
|
||||||
volume_size(IF_MV(i,) &info->size[i], &info->free[i]);
|
volume_size(IF_MV(i,) &info->size[i], &info->free[i]);
|
||||||
#ifdef HAVE_MULTIDRIVE
|
#ifdef HAVE_MULTIDRIVE
|
||||||
drive = volume_drive(i);
|
drive = volume_drive(i);
|
||||||
|
|
@ -180,8 +180,11 @@ static int refresh_data(struct info_data *info)
|
||||||
max = drive;
|
max = drive;
|
||||||
else if (drive < max)
|
else if (drive < max)
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
i++;
|
||||||
|
#endif
|
||||||
|
|
||||||
info->new_data = false;
|
info->new_data = false;
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue