Renamed Linux to GNU/Linux and other tidying

This commit is contained in:
Nav
2022-06-01 21:48:27 +01:00
parent ec9068ba42
commit dd204742d3
10 changed files with 28 additions and 26 deletions

View File

@@ -71,7 +71,7 @@ namespace Bloom::Usb
return output;
}
void HidInterface::write(std::vector<unsigned char> buffer) {
void HidInterface::write(std::vector<unsigned char>&& buffer) {
if (buffer.size() > this->getInputReportSize()) {
throw DeviceCommunicationFailure(
"Cannot send data via HID interface - data exceeds maximum packet size."
@@ -87,7 +87,7 @@ namespace Bloom::Usb
}
int transferred = 0;
auto length = buffer.size();
const auto length = buffer.size();
if ((transferred = hid_write(this->getHidDevice(), buffer.data(), length)) != length) {
Logger::debug("Attempted to write " + std::to_string(length)

View File

@@ -50,7 +50,7 @@ namespace Bloom::Usb
*
* @param buffer
*/
void write(std::vector<unsigned char> buffer);
void write(std::vector<unsigned char>&& buffer);
/**
* Resolves a device path from a USB interface number.