diff options
| author | bunnei <bunneidev@gmail.com> | 2023-01-30 12:17:09 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-30 12:17:09 -0800 |
| commit | ed4a88bd93c93ac1aaf5b6bae7d8ede10ff0338a (patch) | |
| tree | 54b6ce04e859b1dee33f4331f392c0d645f4db43 /src/core/hle/service/hid/hidbus/ringcon.cpp | |
| parent | e74660673b68e7226b7e934efe5eac620f7a98e6 (diff) | |
| parent | b0722591c9b8c1aed5b8bfc5e67e7e957b08f209 (diff) | |
Merge pull request #9508 from ameerj/hle-ipc-buffer-span
hle_ipc: Use std::span to avoid heap allocations/copies when calling ReadBuffer
Diffstat (limited to 'src/core/hle/service/hid/hidbus/ringcon.cpp')
| -rw-r--r-- | src/core/hle/service/hid/hidbus/ringcon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/hidbus/ringcon.cpp b/src/core/hle/service/hid/hidbus/ringcon.cpp index 78ed47014..35847cbdd 100644 --- a/src/core/hle/service/hid/hidbus/ringcon.cpp +++ b/src/core/hle/service/hid/hidbus/ringcon.cpp @@ -116,7 +116,7 @@ std::vector<u8> RingController::GetReply() const { } } -bool RingController::SetCommand(const std::vector<u8>& data) { +bool RingController::SetCommand(std::span<const u8> data) { if (data.size() < 4) { LOG_ERROR(Service_HID, "Command size not supported {}", data.size()); command = RingConCommands::Error; |
