Skip to content

Commit

Permalink
Added additional ways to get into BootSel mode
Browse files Browse the repository at this point in the history
This PR adds two additional ways to get into BootSel mode for instances where you may not have a mapped S2 button or access to a mapped S2 button for a web-config BootSel reboot.
  • Loading branch information
TheTrainGoes committed Nov 4, 2024
1 parent 8de2b00 commit de19ed2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gp2040.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ GP2040::BootAction GP2040::getBootAction() {
return BootAction::ENTER_USB_MODE;
} else if (!webConfigLocked && gamepad->pressedS2()) {
return BootAction::ENTER_WEBCONFIG_MODE;
} else if (gamepad->pressedUp() && gamepad->pressedDown()) {
return BootAction::ENTER_USB_MODE;
} else if (gamepad->pressedLeft() && gamepad->pressedRight()) {
return BootAction::ENTER_USB_MODE;
} else {
if (!modeSwitchLocked) {
if (auto search = bootActions.find(gamepad->state.buttons); search != bootActions.end()) {
Expand Down

0 comments on commit de19ed2

Please sign in to comment.