Skip to content

Commit 58fec84

Browse files
committed
update clear_dialog(): mash_A is done at a lower frequency.
1 parent d4ec217 commit 58fec84

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SerialPrograms/Source/PokemonSV/Programs/AutoStory/PokemonSV_AutoStoryTools.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ void clear_dialog(VideoStream& stream, ProControllerContext& context,
151151

152152
if (mode == ClearDialogMode::STOP_TIMEOUT || !press_A){
153153
context.wait_for(Seconds(seconds_timeout));
154-
}else{ // press A every 8 seconds, until we time out.
155-
auto button_press_period = Seconds(8);
154+
}else{ // press A every 30 seconds, until we time out.
155+
auto button_press_period = Seconds(30);
156156
while (true){
157157
if (current_time() - start_inference + button_press_period > Seconds(seconds_timeout)){
158158
break;

SerialPrograms/Source/PokemonSV/Programs/AutoStory/PokemonSV_AutoStoryTools.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ void clear_tutorial(VideoStream& stream, ProControllerContext& context, uint16_t
125125
// throw exception if times out, unless this is the intended stop condition.
126126
// also throw exception if dialog is never detected.
127127
void clear_dialog(VideoStream& stream, ProControllerContext& context,
128-
ClearDialogMode mode, uint16_t seconds_timeout = 60,
128+
ClearDialogMode mode, uint16_t seconds_timeout = 65,
129129
std::vector<CallbackEnum> optional_callbacks = {},
130130
bool press_A = true
131131
);

0 commit comments

Comments
 (0)