Fix typo in HiresScroll

This commit is contained in:
pixl 2020-08-02 02:34:58 -04:00
parent c3419b9468
commit 6ea65601f3
No known key found for this signature in database
GPG Key ID: 1866C148CD593B6E

View File

@ -70,7 +70,7 @@ HiresScroll::WheelStatus HiresScroll::wheelMovementEvent(const hidpp::Report
HiresScroll::RatchetState HiresScroll::ratchetSwitchEvent(const hidpp::Report
&report)
{
assert(report.function() == WheelMovement);
assert(report.function() == RatchetSwitch);
// Possible bad cast
return static_cast<RatchetState>(report.paramBegin()[0]);
}