Skip to content

Commit

Permalink
libhidpp: Allow HID++ errors to be of any type (not just 'long')
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Rubli authored and cvuchener committed Aug 27, 2021
1 parent 9aa200f commit b334cbd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libhidpp/hidpp/Report.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,7 @@ bool Report::checkErrorMessage20 (uint8_t *feature_index,
uint8_t *error_code,
std::vector<uint8_t> *error_data) const
{
if (static_cast<Type> (_data[Offset::Type]) != Long ||
_data[Offset::SubID] != HIDPP20::ErrorMessage)
if (_data[Offset::SubID] != HIDPP20::ErrorMessage)
return false;

if (feature_index)
Expand Down

0 comments on commit b334cbd

Please sign in to comment.