From 9c728e6b641efd82e29e891dc30303b1e49bed3a Mon Sep 17 00:00:00 2001 From: Kevin Le Date: Wed, 16 Sep 2026 23:20:47 +0700 Subject: [PATCH] Disabled auto light sleep in USB Companion --- examples/companion_radio/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/companion_radio/main.cpp b/examples/companion_radio/main.cpp index 224369fd0..02103bf85 100644 --- a/examples/companion_radio/main.cpp +++ b/examples/companion_radio/main.cpp @@ -265,8 +265,8 @@ void setup() { #endif // Configure Power Management -#if defined(ARDUINO_USB_CDC_ON_BOOT) && ARDUINO_USB_CDC_ON_BOOT - // Disable automatic light sleep for USB CDC Serial +#if (defined(ARDUINO_USB_CDC_ON_BOOT) && ARDUINO_USB_CDC_ON_BOOT) || defined(ENABLE_USB_INTERFACE) + // Disable automatic light sleep for USB CDC Serial and USB Companion pm_config = { .max_freq_mhz = 80, .min_freq_mhz = 40, .light_sleep_enable = false }; #else pm_config = { .max_freq_mhz = 80, .min_freq_mhz = 40, .light_sleep_enable = true };