diff options
-rw-r--r-- | keyboards/keychron/bluetooth/lpm_stm32l432.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/keyboards/keychron/bluetooth/lpm_stm32l432.c b/keyboards/keychron/bluetooth/lpm_stm32l432.c index 10fe9f5ceb..f19bf55d68 100644 --- a/keyboards/keychron/bluetooth/lpm_stm32l432.c +++ b/keyboards/keychron/bluetooth/lpm_stm32l432.c @@ -183,7 +183,11 @@ static inline void enter_low_power_mode_prepare(void) { } static inline void lpm_wakeup(void) { - stm32_clock_fast_init(); + if (usb_power_connected()) + stm32_clock_init(); + else + stm32_clock_fast_init(); + if (bluetooth_transport.init) bluetooth_transport.init(true); chSysLock(); |