1
0
Fork 0
forked from len0rd/rockbox

Fix rockbox info screen on non-MULTIVOLUME targets

Regression introduced in c3a775c05b

Change-Id: Idd069d6325e3403b4de445856184758d3f8230a5
This commit is contained in:
Solomon Peachy 2019-08-05 21:14:41 -04:00
parent ed724fecb1
commit 0544d974f9

View file

@ -160,13 +160,13 @@ enum infoscreenorder
*/
static int refresh_data(struct info_data *info)
{
int i;
int i = 0;
#ifdef HAVE_MULTIDRIVE
int drive;
int max = -1;
#endif
for (i = 0 ; CHECK_VOL(i) ; i++) {
#endif
volume_size(IF_MV(i,) &info->size[i], &info->free[i]);
#ifdef HAVE_MULTIDRIVE
drive = volume_drive(i);
@ -180,8 +180,11 @@ static int refresh_data(struct info_data *info)
max = drive;
else if (drive < max)
break;
#endif
}
#else
i++;
#endif
info->new_data = false;
return i;
}