diff --git a/Firmware/RP2040/src/USBHost/HostDriver/PS4/PS4.cpp b/Firmware/RP2040/src/USBHost/HostDriver/PS4/PS4.cpp index 8b8b39d8..ceaa552b 100644 --- a/Firmware/RP2040/src/USBHost/HostDriver/PS4/PS4.cpp +++ b/Firmware/RP2040/src/USBHost/HostDriver/PS4/PS4.cpp @@ -18,7 +18,7 @@ void PS4Host::initialize(Gamepad& gamepad, uint8_t address, uint8_t instance, co void PS4Host::process_report(Gamepad& gamepad, uint8_t address, uint8_t instance, const uint8_t* report, uint16_t len) { std::memcpy(&in_report_, report, std::min(static_cast(len), sizeof(PS4::InReport))); - in_report_.buttons[2] &= PS4::COUNTER_MASK; + in_report_.buttons[2] &= static_cast(~PS4::COUNTER_MASK); if (std::memcmp(reinterpret_cast(report), &prev_in_report_, sizeof(PS4::InReport)) == 0) { return;