Skip to content

Commit

Permalink
Increase ignore time after setting standby/sleep mode to 500ms
Browse files Browse the repository at this point in the history
250ms was too low, it would usually come back into run mode when
releasing the button.
  • Loading branch information
deividAlfa committed Jul 6, 2023
1 parent 67948dd commit d6f4f0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Drivers/graphics/gui/screens/main_screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ int main_screenProcessInput(screen_t * scr, RE_Rotation_t input, RE_State_t *sta

// If at main temperature screen
if(mainScr.currentMode == main_irontemp && (input == Rotate_Increment || input == Rotate_Decrement || input == Click)){
if(getIronWakeSource()==wakeSrc_Button && !checkIronModeTimer(250)){ // To avoid unwanted mode changing, ignore action if iron mode was set <250ms ago
if(getIronWakeSource()==wakeSrc_Button && !checkIronModeTimer(500)){ // To avoid unwanted mode change, ignore action if iron mode was set <500ms ago
input = Rotate_Nothing;
}
else if(currentIronMode==mode_boost){ // If iron in boost mode, return to normal mode, don't process the input
Expand Down

0 comments on commit d6f4f0b

Please sign in to comment.