fix msvc compilation

This commit is contained in:
2023-12-23 17:09:31 -05:00
parent d4372fa5c2
commit eb174fb8ba
3 changed files with 11 additions and 26 deletions

View File

@ -440,8 +440,8 @@ static HRESULT led15093_req_set_timeout(int board, const struct led15093_req_set
resp.cmd = LED_15093_CMD_SET_TIMEOUT;
resp.report = v->report_code;
resp.count_upper = (req->count >> 8) & 0xff;
resp.count_lower = req->count & 0xff;
resp.count_upper = 0;
resp.count_lower = req->count;
return led15093_frame_encode(&led15093_per_board_vars[board].boarduart.readable, &resp, sizeof(resp.hdr) + resp.hdr.nbytes);
}