Merge pull request #9657 from lioncash/wiimote-mode

DataReport: Amend conditional test for data reports in IsValidMode
This commit is contained in:
Jordan Woyak 2021-05-12 17:23:17 -05:00 committed by GitHub
commit bf16f77402
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ InputReportID DataReportBuilder::GetMode() const
bool DataReportBuilder::IsValidMode(InputReportID mode) bool DataReportBuilder::IsValidMode(InputReportID mode)
{ {
return (mode >= InputReportID::ReportCore && mode <= InputReportID::ReportCoreAccelIR10Ext6) || return (mode >= InputReportID::ReportCore && mode <= InputReportID::ReportCoreAccelIR10Ext6) ||
(mode >= InputReportID::ReportExt21 && InputReportID::ReportInterleave2 <= mode); (mode >= InputReportID::ReportExt21 && mode <= InputReportID::ReportInterleave2);
} }
bool DataReportBuilder::HasCore() const bool DataReportBuilder::HasCore() const