From 3fd3727224b364275eee10494f651f3e68c05f5d Mon Sep 17 00:00:00 2001 From: Drashna Jael're Date: Tue, 25 Jun 2024 18:38:53 -0700 Subject: [PATCH] Revert "LUFA: make send_report a boolean" This reverts commit 07edd8fff4bb7dfca1195ab9cf9f21cd4370907b. --- tmk_core/protocol/lufa/lufa.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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