mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-01-10 23:53:25 +00:00
Use 'send_report' directly for oryx
This commit is contained in:
@@ -15,8 +15,20 @@ rawhid_state_t rawhid_state = {
|
|||||||
|
|
||||||
uint8_t pairing_input_index = 0;
|
uint8_t pairing_input_index = 0;
|
||||||
|
|
||||||
|
#if defined(PROTOCOL_LUFA)
|
||||||
|
void send_report(uint8_t endpoint, void *report, size_t size);
|
||||||
|
# define RAW_EP_NAME RAW_IN_EPNUM
|
||||||
|
#elif defined(PROTOCOL_CHIBIOS)
|
||||||
|
# include "usb_endpoints.h"
|
||||||
|
# define RAW_EP_NAME USB_ENDPOINT_IN_RAW
|
||||||
|
bool send_report(usb_endpoint_in_lut_t endpoint, void *report, size_t size);
|
||||||
|
#endif
|
||||||
|
|
||||||
void raw_hid_send_oryx(uint8_t *data, uint8_t length) {
|
void raw_hid_send_oryx(uint8_t *data, uint8_t length) {
|
||||||
if (!raw_hid_send(data, length)) {
|
if (length != RAW_EPSIZE) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!send_report(RAW_EP_NAME, data, length)) {
|
||||||
rawhid_state.paired = false;
|
rawhid_state.paired = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user