Disabled auto light sleep in USB Companion

This commit is contained in:
Kevin Le committed 2026-09-16 23:20:47 +07:00
1 parent bbcec95538
commit 9c728e6b64
1 file changed
+2 -2
+2 -2
View File
@@ -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 };