Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ bool handle_encounter(ConsoleHandle& console, ProControllerContext& context, boo
},
{{shiny_detector}}
);
shiny_detector.throw_if_no_sound();
shiny_detector.throw_if_no_sound(std::chrono::milliseconds(1000));
if (res == 0){
console.log("Shiny detected!");
return true;
Expand Down
2 changes: 1 addition & 1 deletion SerialPrograms/Source/PokemonRSE/PokemonRSE_Navigation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ bool handle_encounter(ConsoleHandle& console, ProControllerContext& context, boo
},
{{shiny_detector}}
);
shiny_detector.throw_if_no_sound();
shiny_detector.throw_if_no_sound(std::chrono::milliseconds(1000));
if (res == 0){
console.log("Shiny detected!");
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void AudioStarterReset::program(SingleSwitchProgramEnvironment& env, ProControll
},
{{pooch_detector}}
);
pooch_detector.throw_if_no_sound();
pooch_detector.throw_if_no_sound(std::chrono::milliseconds(1000));
if (res == 0){
env.log("Shiny Poochyena detected!");
stats.poochyena++;
Expand Down Expand Up @@ -277,7 +277,7 @@ void AudioStarterReset::program(SingleSwitchProgramEnvironment& env, ProControll
},
{{starter_detector}}
);
starter_detector.throw_if_no_sound();
starter_detector.throw_if_no_sound(std::chrono::milliseconds(1000));
context.wait_for_all_requests();
if (res2 == 0){
env.log("Shiny starter detected!");
Expand Down
Loading