Change rwu send condition

This commit is contained in:
sekigon-gonnoc 2022-03-01 16:05:29 +09:00 • committed by Ilya Zhuravlev
commit 4e6a1f9acc

View file

@ -33,7 +33,7 @@ uint8_t keyboard_leds(void) {
}
void send_keyboard(report_keyboard_t *report) {
if (tud_ready() && tud_suspended()){
if (tud_suspended()) {
tud_remote_wakeup();
}
@ -48,7 +48,7 @@ void send_keyboard(report_keyboard_t *report) {
}
void send_mouse(report_mouse_t *report) {
if (tud_ready() && tud_suspended()){
if (tud_suspended()) {
tud_remote_wakeup();
}