Assert report ID and length before sending

This commit is contained in:
pixl
2020-06-21 15:42:44 -04:00
parent e40da5f0c0
commit 261d82390b
3 changed files with 22 additions and 6 deletions

View File

@@ -100,8 +100,9 @@ namespace logid::backend::hidpp
bool isError20(hidpp20_error* error);
std::vector<uint8_t> rawReport () const { return _data; }
private:
static constexpr std::size_t HeaderLength = 4;
private:
std::vector<uint8_t> _data;
};
}