Skip to content

Commit be48e6b

Browse files
committed
More stability improvements to ESP32 datespam.
1 parent 68048e4 commit be48e6b

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

SerialPrograms/Source/CommonFramework/Globals.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace PokemonAutomation{
2626
const bool IS_BETA_VERSION = true;
2727
const int PROGRAM_VERSION_MAJOR = 0;
2828
const int PROGRAM_VERSION_MINOR = 52;
29-
const int PROGRAM_VERSION_PATCH = 5;
29+
const int PROGRAM_VERSION_PATCH = 6;
3030

3131
const std::string PROGRAM_VERSION_BASE =
3232
"v" + std::to_string(PROGRAM_VERSION_MAJOR) +

SerialPrograms/Source/NintendoSwitch/Programs/NintendoSwitch_Navigation.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,20 @@ void home_to_date_time(ProControllerContext& context, bool to_date_change, bool
110110
return;
111111
}
112112

113+
// Double up this A press in case one is dropped.
114+
ssf_press_button(context, BUTTON_A, unit);
113115
ssf_press_button(context, BUTTON_A, unit);
114116
{
115-
auto iterations = Milliseconds(216) / unit + 1;
117+
auto iterations = Milliseconds(240) / unit + 1;
116118
do{
117119
ssf_issue_scroll(context, SSF_SCROLL_DOWN, unit);
118120
}while (--iterations);
119121
}
120-
ssf_issue_scroll(context, SSF_SCROLL_DOWN, 0);
122+
123+
// Left scroll in case we missed the date menu and landed in the
124+
// language change.
125+
ssf_issue_scroll(context, SSF_SCROLL_LEFT, 0ms, 2*unit, unit);
126+
121127
break;
122128
}
123129
default:{

0 commit comments

Comments
 (0)