summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-04-19 16:39:57 -0400
committerLioncash <mathew1800@gmail.com>2021-04-19 16:43:29 -0400
commitb21d62116d7b5bca7bf4e41a183bf25ce315bdfe (patch)
treedb1acf7f12eaa5455934e828d8bd0bd1e1ac1109 /Source/Core
parentec5fbeb0d629565d90e664e2781e7ec80b983861 (diff)
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.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/HW/WiimoteCommon/DataReport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Core/HW/WiimoteCommon/DataReport.cpp b/Source/Core/Core/HW/WiimoteCommon/DataReport.cpp
index 9a2efd0616..e78a40ccc2 100644
--- a/Source/Core/Core/HW/WiimoteCommon/DataReport.cpp
+++ b/Source/Core/Core/HW/WiimoteCommon/DataReport.cpp
@@ -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