mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-19 20:45:18 -05:00
fix(usb): detect USB power mode to fallback to BLE
* Add tracking to see if we ever hit a configured status before suspend, so we can properly track "is connected" even when connected to a suspended/asleep host.
This commit is contained in:
@@ -24,6 +24,4 @@ enum zmk_usb_conn_state zmk_usb_get_conn_state(void);
|
||||
static inline bool zmk_usb_is_powered(void) {
|
||||
return zmk_usb_get_conn_state() != ZMK_USB_CONN_NONE;
|
||||
}
|
||||
static inline bool zmk_usb_is_hid_ready(void) {
|
||||
return zmk_usb_get_conn_state() == ZMK_USB_CONN_HID;
|
||||
}
|
||||
bool zmk_usb_is_hid_ready(void);
|
||||
|
||||
Reference in New Issue
Block a user