summaryrefslogtreecommitdiffstats
path: root/apps/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings.c b/apps/settings.c
index e2a6efa3d8..a0f219efec 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -1020,7 +1020,7 @@ void settings_apply(bool read_disk)
touchpad_set_sensitivity(global_settings.touchpad_sensitivity);
#endif
-#ifdef HAVE_USB_CHARGING_ENABLE
+#if defined (HAVE_USBSTACK) && defined(HAVE_USB_CHARGING_ENABLE)
usb_charging_enable(global_settings.usb_charging);
#endif