diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c index 579c651108..f16fce9487 100644 --- a/apps/menus/main_menu.c +++ b/apps/menus/main_menu.c @@ -172,7 +172,7 @@ static int refresh_data(struct info_data *info) int special = 0; #endif int drive = 0; - for (i = 0 ; CHECK_VOL(i) ; i++) + for (i = 0 ; i < NUM_VOLUMES ; i++) #endif { volume_size(IF_MV(i,) &info->size[i], &info->free[i]); @@ -353,7 +353,7 @@ static int info_action_callback(int action, struct gui_synclist *lists) info->new_data = true; splash(0, ID2P(LANG_SCANNING_DISK)); #if (CONFIG_PLATFORM & PLATFORM_NATIVE) - for (int i = 0; CHECK_VOL(i); i++) + for (int i = 0; i < NUM_VOLUMES; i++) volume_recalc_free(IF_MV(i)); #endif gui_synclist_speak_item(lists); @@ -438,7 +438,7 @@ static int info_action_callback(int action, struct gui_synclist *lists) } #endif /* INFO_DISK, capacity/free on internal */ - for (int i = 0; CHECK_VOL(i) ; i++) { + for (int i = 0; i < NUM_VOLUMES ; i++) { if (info->size[i]) { output_dyn_value(s1, sizeof s1, info->free[i], kibyte_units, 3, true); output_dyn_value(s2, sizeof s2, info->size[i], kibyte_units, 3, true);