diff --git a/Android.mk b/Android.mk index 3d7ec26..c63081f 100644 --- a/Android.mk +++ b/Android.mk @@ -40,7 +40,7 @@ LOCAL_CFLAGS += -DRECOVERY_VERSION="$(RECOVERY_VERSION)" RECOVERY_API_VERSION := 2 LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION) -BOARD_RECOVERY_DEFINES := BOARD_HAS_NO_SELECT_BUTTON BOARD_HAS_SMALL_RECOVERY BOARD_LDPI_RECOVERY BOARD_UMS_LUNFILE BOARD_RECOVERY_ALWAYS_WIPES BOARD_RECOVERY_HANDLES_MOUNT BOARD_USES_VIRTUAL_SDCARD +BOARD_RECOVERY_DEFINES := BOARD_HAS_NO_SELECT_BUTTON BOARD_HAS_SMALL_RECOVERY BOARD_LDPI_RECOVERY BOARD_UMS_LUNFILE BOARD_RECOVERY_ALWAYS_WIPES BOARD_RECOVERY_HANDLES_MOUNT $(foreach board_define,$(BOARD_RECOVERY_DEFINES), \ $(if $($(board_define)), \ diff --git a/extendedcommands.c b/extendedcommands.c index 4750a05..729778c 100644 --- a/extendedcommands.c +++ b/extendedcommands.c @@ -669,7 +669,6 @@ void show_partition_menu() static char* confirm_format = "Confirm format?"; static char* confirm = "Yes - Format"; char confirm_string[255]; - int ptr = 0; for (;;) { @@ -691,11 +690,8 @@ void show_partition_menu() options[mountable_volumes+i] = e->txt; } -#ifndef BOARD_USES_VIRTUAL_SDCARD options[mountable_volumes+formatable_volumes] = "mount USB storage"; - ptr = 1; -#endif - options[mountable_volumes+formatable_volumes + ptr] = NULL; + options[mountable_volumes+formatable_volumes + 1] = NULL; int chosen_item = get_menu_selection(headers, &options, 0, 0); if (chosen_item == GO_BACK)