diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c index 26c0892773..2142b04460 100644 --- a/tmk_core/protocol/lufa/lufa.c +++ b/tmk_core/protocol/lufa/lufa.c @@ -87,10 +87,10 @@ static void send_mouse(report_mouse_t *report); static void send_extra(report_extra_t *report); host_driver_t lufa_driver = {keyboard_leds, send_keyboard, send_nkro, send_mouse, send_extra}; -bool send_report(uint8_t endpoint, void *report, size_t size) { +void send_report(uint8_t endpoint, void *report, size_t size) { uint8_t timeout = 255; - if (USB_DeviceState != DEVICE_STATE_Configured) return false; + if (USB_DeviceState != DEVICE_STATE_Configured) return; Endpoint_SelectEndpoint(endpoint); @@ -98,11 +98,10 @@ bool send_report(uint8_t endpoint, void *report, size_t size) { while (timeout-- && !Endpoint_IsReadWriteAllowed()) { _delay_us(40); } - if (!Endpoint_IsReadWriteAllowed()) return false; + if (!Endpoint_IsReadWriteAllowed()) return; Endpoint_Write_Stream_LE(report, size, NULL); Endpoint_ClearIN(); - return true; } #ifdef VIRTSER_ENABLE