diff --git a/tmk_core/protocol/chibios/usb_main.c b/tmk_core/protocol/chibios/usb_main.c index af4eca4da0d..ffe1ba40cb0 100644 --- a/tmk_core/protocol/chibios/usb_main.c +++ b/tmk_core/protocol/chibios/usb_main.c @@ -1155,10 +1155,10 @@ void xap_send(xap_token_t token, xap_response_flags_t response_flags, const void } void xap_broadcast(uint8_t type, const void *data, size_t length) { - uint8_t rdata[XAP_EPSIZE] = {0}; - xap_broadcast_header_t *header = (xap_broadcast_header_t *)&rdata[0]; - header->token = XAP_BROADCAST_TOKEN; - header->type = type; + uint8_t rdata[XAP_EPSIZE] = {0}; + xap_broadcast_header_t *header = (xap_broadcast_header_t *)&rdata[0]; + header->token = XAP_BROADCAST_TOKEN; + header->type = type; if (length > (XAP_EPSIZE - sizeof(xap_broadcast_header_t))) return; diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c index 0353ec7d4d5..b9bfef0b979 100644 --- a/tmk_core/protocol/lufa/lufa.c +++ b/tmk_core/protocol/lufa/lufa.c @@ -261,10 +261,10 @@ void xap_send(xap_token_t token, xap_response_flags_t response_flags, const void } void xap_broadcast(uint8_t type, const void *data, size_t length) { - uint8_t rdata[XAP_EPSIZE] = {0}; - xap_broadcast_header_t *header = (xap_broadcast_header_t *)&rdata[0]; - header->token = XAP_BROADCAST_TOKEN; - header->type = type; + uint8_t rdata[XAP_EPSIZE] = {0}; + xap_broadcast_header_t *header = (xap_broadcast_header_t *)&rdata[0]; + header->token = XAP_BROADCAST_TOKEN; + header->type = type; if (length > (XAP_EPSIZE - sizeof(xap_broadcast_header_t))) return; diff --git a/tmk_core/protocol/vusb/vusb.c b/tmk_core/protocol/vusb/vusb.c index f8375de3693..245e454cbec 100644 --- a/tmk_core/protocol/vusb/vusb.c +++ b/tmk_core/protocol/vusb/vusb.c @@ -222,10 +222,10 @@ void xap_send(xap_token_t token, xap_response_flags_t response_flags, const void } void xap_broadcast(uint8_t type, const void *data, size_t length) { - uint8_t rdata[XAP_BUFFER_SIZE] = {0}; - xap_broadcast_header_t *header = (xap_broadcast_header_t *)&rdata[0]; - header->token = XAP_BROADCAST_TOKEN; - header->type = type; + uint8_t rdata[XAP_BUFFER_SIZE] = {0}; + xap_broadcast_header_t *header = (xap_broadcast_header_t *)&rdata[0]; + header->token = XAP_BROADCAST_TOKEN; + header->type = type; if (length > (XAP_BUFFER_SIZE - sizeof(xap_broadcast_header_t))) return;