mirror of
https://github.com/PabloMK7/citra.git
synced 2025-10-11 20:10:03 +00:00
core: fix warnings
This commit is contained in:
parent
796e8a9f24
commit
8eb89c260d
12 changed files with 55 additions and 42 deletions
|
@ -204,12 +204,11 @@ void ExtraHID::HandleReadCalibrationDataRequest(const std::vector<u8>& request_b
|
|||
return;
|
||||
}
|
||||
|
||||
std::vector<u8> response(5);
|
||||
std::vector<u8> response(5 + size);
|
||||
response[0] = static_cast<u8>(ResponseID::ReadCalibrationData);
|
||||
std::memcpy(&response[1], &request.offset, sizeof(request.offset));
|
||||
std::memcpy(&response[3], &request.size, sizeof(request.size));
|
||||
response.insert(response.end(), calibration_data.begin() + offset,
|
||||
calibration_data.begin() + offset + size);
|
||||
std::memcpy(&response[5], calibration_data.data() + offset, size);
|
||||
Send(response);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue