DataReport: Amend conditional test for data reports in IsValidMode

This particular range is kind of bizarre, and would only interpret
interleave mode 2 as a valid mode, while rejecting interleave mode 1 and
the extension byte mode.

As far as I know, based off the information on Wiibrew, we should be
considering all three values within this range as valid.
This commit is contained in:
Lioncash 2021-04-19 16:39:57 -04:00
parent ec5fbeb0d6
commit b21d62116d
1 changed files with 1 additions and 1 deletions

View File

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