From a097c23db24253dfbd27c26a7a75dcc1a2a8e2d9 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 3 Jul 2026 14:45:21 -0400 Subject: [PATCH] usb: Fix warning introduced in f11c89aae2 'usb_power_only' only should exist for USB_FULL_INIT Change-Id: I23d14477ba55e81048ab29dada8d7d2ee44532b0 --- firmware/usb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/usb.c b/firmware/usb.c index 8f93cf158e..1e91efd96b 100644 --- a/firmware/usb.c +++ b/firmware/usb.c @@ -82,7 +82,9 @@ static int usb_state = USB_EXTRACTED; static int usb_mmc_countdown = 0; #endif #if defined(HAVE_USB_POWER) || defined(HAVE_USB_ADB) +#ifdef USB_FULL_INIT static bool usb_power_only = false; +#endif static int usb_mode = USBMODE_DEFAULT; void usb_set_mode(int mode) {