From b21d62116d7b5bca7bf4e41a183bf25ce315bdfe Mon Sep 17 00:00:00 2001
From: Lioncash <mathew1800@gmail.com>
Date: Mon, 19 Apr 2021 16:39:57 -0400
Subject: [PATCH] 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.
---
 Source/Core/Core/HW/WiimoteCommon/DataReport.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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