summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-08-05 21:14:41 -0400
committerSolomon Peachy <pizza@shaftnet.org>2019-08-05 21:15:40 -0400
commit0544d974f9283602ef7ca922552f29667579bcb3 (patch)
treebf0a93431bef2292d962e68b3bd873ec7e224742
parented724fecb15d90d8075ed1edb963f455cb91b0a1 (diff)
downloadrockbox-0544d974f9283602ef7ca922552f29667579bcb3.tar.gz
rockbox-0544d974f9283602ef7ca922552f29667579bcb3.tar.bz2
rockbox-0544d974f9283602ef7ca922552f29667579bcb3.zip
Fix rockbox info screen on non-MULTIVOLUME targets
Regression introduced in c3a775c05b70ea538076c3f02909137e9474c52e Change-Id: Idd069d6325e3403b4de445856184758d3f8230a5
-rw-r--r--apps/menus/main_menu.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c
index 6e63951319..90c8c1d7fc 100644
--- a/apps/menus/main_menu.c
+++ b/apps/menus/main_menu.c
@@ -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;
}