Skip to content

Commit dcbdb38

Browse files
committed
Further improve stability of date spam.
1 parent 7af8f54 commit dcbdb38

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
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 = 53;
29-
const int PROGRAM_VERSION_PATCH = 4;
29+
const int PROGRAM_VERSION_PATCH = 5;
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: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,19 @@ void home_to_date_time(ProControllerContext& context, bool to_date_change, bool
5959
ssf_issue_scroll(context, SSF_SCROLL_DOWN, 3);
6060

6161
if (!to_date_change){
62-
// Double up this A press in case one is dropped.
62+
// Triple up this A press to make sure it gets through.
63+
ssf_press_button(context, BUTTON_A, 3);
6364
ssf_press_button(context, BUTTON_A, 3);
6465
ssf_press_button(context, BUTTON_A, 45);
6566
return;
6667
}
6768

68-
// Double up this A press in case one is dropped.
69+
// Triple up this A press to make sure it gets through.
70+
ssf_press_button(context, BUTTON_A, 3);
6971
ssf_press_button(context, BUTTON_A, 3);
7072
ssf_press_button(context, BUTTON_A, 3);
7173
{
72-
auto iterations = Milliseconds(240) / 24ms + 1;
74+
auto iterations = Milliseconds(250) / 24ms + 1;
7375
do{
7476
ssf_issue_scroll(context, SSF_SCROLL_DOWN, 24ms);
7577
}while (--iterations);
@@ -129,17 +131,19 @@ void home_to_date_time(ProControllerContext& context, bool to_date_change, bool
129131
ssf_issue_scroll(context, SSF_SCROLL_DOWN, unit);
130132

131133
if (!to_date_change){
132-
// Double up this A press in case one is dropped.
134+
// Triple up this A press to make sure it gets through.
135+
ssf_press_button(context, BUTTON_A, unit);
133136
ssf_press_button(context, BUTTON_A, unit);
134137
ssf_press_button(context, BUTTON_A, 360ms, 2*unit, unit);
135138
return;
136139
}
137140

138-
// Double up this A press in case one is dropped.
141+
// Triple up this A press to make sure it gets through.
142+
ssf_press_button(context, BUTTON_A, unit);
139143
ssf_press_button(context, BUTTON_A, unit);
140144
ssf_press_button(context, BUTTON_A, unit);
141145
{
142-
auto iterations = Milliseconds(240) / unit + 1;
146+
auto iterations = Milliseconds(250) / unit + 1;
143147
do{
144148
ssf_issue_scroll(context, SSF_SCROLL_DOWN, unit);
145149
}while (--iterations);

0 commit comments

Comments
 (0)