cadMousePro-daemon/src/HID.h
branchv_0
changeset 11 bb42abd9f510
parent 8 465572518625
child 26 fff8e9a86e85
--- a/cadMousePro-daemon/src/HID.h	Mon Aug 19 17:55:50 2019 +0200
+++ b/cadMousePro-daemon/src/HID.h	Tue Aug 20 18:59:39 2019 +0200
@@ -83,7 +83,7 @@
 		return buffer.data();
 	}
 
-	void sendFeatureReport(Packet data) {
+	void sendFeatureReport(const Packet& data) {
 		int written = hid_send_feature_report(handle.get(), data.data(), data.size());
 		if (written < 0) throw HIDException(L"Unable to send feature report.");
 	}