Refer to receiver from receiver devices

This commit is contained in:
pixl
2020-07-20 00:25:04 -04:00
parent 1056dfa032
commit 34b8047360
10 changed files with 70 additions and 10 deletions
+6
View File
@@ -36,6 +36,12 @@ Device::Device(std::shared_ptr<raw::RawDevice> raw_dev,
assert(version() == std::make_tuple(1, 0));
}
Device::Device(std::shared_ptr<dj::Receiver> receiver, hidpp::DeviceIndex index)
: hidpp::Device(receiver, index)
{
assert(version() == std::make_tuple(1, 0));
}
std::vector<uint8_t> Device::getRegister(uint8_t address,
const std::vector<uint8_t>& params, hidpp::Report::Type type)
{