From 7c58b6f0db5afd421c957f66a43ea0a3c972c025 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sun, 7 Mar 2021 18:30:50 -0500 Subject: [PATCH] usb_mode: Missed a #define that led to some sim build failures. Change-Id: Ie872c5684a200bf99ee7083bb35700a663ef9788 --- apps/menus/settings_menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c index a28b568da1..5b96bca6c6 100644 --- a/apps/menus/settings_menu.c +++ b/apps/menus/settings_menu.c @@ -266,7 +266,7 @@ MAKE_MENU(battery_menu, ID2P(LANG_BATTERY_MENU), 0, Icon_NOICON, &usb_charging, #endif ); -#ifdef HAVE_USB_POWER +#if defined(HAVE_USB_POWER) && !defined(USB_NONE) && !defined(SIMULATOR) MENUITEM_SETTING(usb_mode, &global_settings.usb_mode, NULL); #endif /* Disk */