This commit is contained in:
zvecr 2022-03-18 21:43:01 +00:00
parent a5204887a8
commit 70c9905cb6

View File

@ -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)) {