summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-11-16 12:35:33 -0500
committerSolomon Peachy <pizza@shaftnet.org>2020-11-16 12:35:47 -0500
commit3e32521be58c9e4b0a61db64b9901b9e74297596 (patch)
tree02337e5c496fa5f17d557bccc0dcce55f70030c6
parent9c68c69cf029b22587f4a7225261a45e5391a242 (diff)
downloadrockbox-3e32521.tar.gz
rockbox-3e32521.zip
Fix the red introduced in 9c68c69
Change-Id: I5f3e3ddd5bc11b8d58e5c05ec3bf7171537c016d
-rw-r--r--apps/settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 59cb480c95..9840b9e3ce 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -1025,7 +1025,7 @@ void settings_apply(bool read_disk)
usb_charging_enable(global_settings.usb_charging);
#endif
-#ifdef HAVE_USB_POWER
+#ifdef HAVE_USB_POWER && !defined(USB_NONE) && !defined(SIMULATOR)
usb_set_mode(global_settings.usb_mode);
#endif