mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-20 04:55:20 -05:00
fix(usb): add USB_DC_CLEAR_HALT to supported states
See https://manpages.debian.org/testing/linux-manual-4.9/usb_clear_halt.9 for information on halted USB endpoints
This commit is contained in:
committed by
Pete Johanson
parent
9f90dd1fc7
commit
c7fdce863a
@@ -34,6 +34,7 @@ enum zmk_usb_conn_state zmk_usb_get_conn_state() {
|
|||||||
case USB_DC_SUSPEND:
|
case USB_DC_SUSPEND:
|
||||||
case USB_DC_CONFIGURED:
|
case USB_DC_CONFIGURED:
|
||||||
case USB_DC_RESUME:
|
case USB_DC_RESUME:
|
||||||
|
case USB_DC_CLEAR_HALT:
|
||||||
return ZMK_USB_CONN_HID;
|
return ZMK_USB_CONN_HID;
|
||||||
|
|
||||||
case USB_DC_DISCONNECTED:
|
case USB_DC_DISCONNECTED:
|
||||||
|
|||||||
Reference in New Issue
Block a user