Fix long report descriptor check

This commit is contained in:
pixl
2020-06-19 22:51:22 -04:00
parent f0c903d539
commit f2a7b7b947
3 changed files with 4 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ uint8_t hidpp::getSupportedReports(std::vector<uint8_t>&& rdesc)
if(it != rdesc.end())
ret |= HIDPP_REPORT_SHORT_SUPPORTED;
it = std::search(rdesc.begin(), rdesc.end(), LongReportDesc.begin(), LongReportDesc2.end());
it = std::search(rdesc.begin(), rdesc.end(), LongReportDesc.begin(), LongReportDesc.end());
if(it == rdesc.end())
it = std::search(rdesc.begin(), rdesc.end(), LongReportDesc2.begin(), LongReportDesc2.end());
if(it != rdesc.end())