We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9d4f591 + 1618d9a commit 7a09423Copy full SHA for 7a09423
1 file changed
src/StateMachine.cpp
@@ -86,7 +86,12 @@ void StateMachine::update()
86
if (button_selectVI.longPressedFlag) // Long press
87
{
88
button_selectVI.clearLongPressedFlag();
89
- transitionTo(State::NORMAL_PPS);
+ if (menu.menuPosition == usbpd.getPPSIndex()) {
90
+ transitionTo(State::NORMAL_PPS);
91
+ } else {
92
+ forceSave = true;
93
+ transitionTo(State::NORMAL_PDO);
94
+ }
95
}
96
if (button_encoder.longPressedFlag) // Long press
97
0 commit comments