summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/menus/settings_menu.c2
-rw-r--r--apps/settings.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c
index f8dbb86dc3..a28b568da1 100644
--- a/apps/menus/settings_menu.c
+++ b/apps/menus/settings_menu.c
@@ -449,7 +449,7 @@ MAKE_MENU(system_menu, ID2P(LANG_SYSTEM),
#if defined(DX50) || defined(DX90)
&governor,
#endif
-#ifdef HAVE_USB_POWER
+#if defined(HAVE_USB_POWER) && !defined(USB_NONE) && !defined(SIMULATOR)
&usb_mode,
#endif
);
diff --git a/apps/settings.h b/apps/settings.h
index e6af373e15..728e10bf30 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -824,7 +824,7 @@ struct user_settings
#if defined(DX50) || defined(DX90)
int governor;
#endif
-#ifdef HAVE_USB_POWER
+#if defined(HAVE_USB_POWER) && !defined(USB_NONE) && !defined(SIMULATOR)
int usb_mode;
#endif
};