mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-03 08:25:11 +00:00
clang
This commit is contained in:
parent
a5204887a8
commit
70c9905cb6
@ -206,7 +206,7 @@ void xap_send_base(uint8_t *data, uint8_t length) {
|
||||
|
||||
void xap_send(xap_token_t token, uint8_t response_flags, const void *data, size_t length) {
|
||||
uint8_t rdata[XAP_BUFFER_SIZE] = {0};
|
||||
*(xap_token_t *)&rdata[0] = token;
|
||||
*(xap_token_t *)&rdata[0] = token;
|
||||
if (length > (XAP_BUFFER_SIZE - 4)) response_flags &= ~(XAP_RESPONSE_FLAG_SUCCESS);
|
||||
rdata[2] = response_flags;
|
||||
if (response_flags & (XAP_RESPONSE_FLAG_SUCCESS)) {
|
||||
|
Loading…
Reference in New Issue
Block a user