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:
Xudong Zheng 2022-11-16 17:00:39 -05:00 committed by Pete Johanson
parent 9f90dd1fc7
commit c7fdce863a

View file

@ -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: