diff --git a/src/libhidpp/hidpp/Report.cpp b/src/libhidpp/hidpp/Report.cpp index 7e2acca..a24f310 100644 --- a/src/libhidpp/hidpp/Report.cpp +++ b/src/libhidpp/hidpp/Report.cpp @@ -258,8 +258,7 @@ bool Report::checkErrorMessage20 (uint8_t *feature_index, uint8_t *error_code, std::vector *error_data) const { - if (static_cast (_data[Offset::Type]) != Long || - _data[Offset::SubID] != HIDPP20::ErrorMessage) + if (_data[Offset::SubID] != HIDPP20::ErrorMessage) return false; if (feature_index)