Skip to content

Commit

Permalink
bad copy/paste
Browse files Browse the repository at this point in the history
  • Loading branch information
NickGuyver committed Sep 13, 2024
1 parent 972b130 commit ab0f980
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/drivers/switch/SwitchDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ void SwitchDriver::process(Gamepad * gamepad, uint8_t * outBuffer) {
| (gamepad->pressedA2() ? SWITCH_MASK_CAPTURE : 0)
;

switchReport.lx = static_cast<uint8_t>((gamepad->state.ry + 128) >> 8);
switchReport.ly = static_cast<uint8_t>((gamepad->state.ry + 128) >> 8);
switchReport.rx = static_cast<uint8_t>((gamepad->state.ry + 128) >> 8);
switchReport.lx = static_cast<uint8_t>((gamepad->state.lx + 128) >> 8);
switchReport.ly = static_cast<uint8_t>((gamepad->state.ly + 128) >> 8);
switchReport.rx = static_cast<uint8_t>((gamepad->state.rx + 128) >> 8);
switchReport.ry = static_cast<uint8_t>((gamepad->state.ry + 128) >> 8);

// Wake up TinyUSB device
Expand Down

0 comments on commit ab0f980

Please sign in to comment.