diff options
Diffstat (limited to 'chip/stm32/usb_hid_keyboard.c')
-rw-r--r-- | chip/stm32/usb_hid_keyboard.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chip/stm32/usb_hid_keyboard.c b/chip/stm32/usb_hid_keyboard.c index efc02b48a4..f30eedde13 100644 --- a/chip/stm32/usb_hid_keyboard.c +++ b/chip/stm32/usb_hid_keyboard.c @@ -407,6 +407,13 @@ static void hid_keyboard_event(enum usb_ep_event evt) NULL, 0 #endif ); + + /* + * Reload endpoint on reset, to make sure we report accurate + * state to host (this is especially important for tablet mode + * switch). + */ + write_keyboard_report(); return; } |