Skip to content

Commit d7852fd

Browse files
committed
Fix error recover for LGPE legendary reset. Version #.
1 parent c2eae0e commit d7852fd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-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 = 54;
29-
const int PROGRAM_VERSION_PATCH = 1;
29+
const int PROGRAM_VERSION_PATCH = 2;
3030

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

SerialPrograms/Source/PokemonLGPE/Programs/ShinyHunting/PokemonLGPE_LegendaryReset.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,11 @@ void LegendaryReset::program(SingleSwitchProgramEnvironment& env, CancellableSco
196196
"No shiny found. Resetting game."
197197
);
198198
context.wait_for_all_requests();
199+
consecutive_failures = 0;
199200
}catch (OperationFailedException& e){
200201
e.send_notification(env, NOTIFICATION_ERROR_RECOVERABLE);
201202
consecutive_failures++;
202-
continue;
203203
}
204-
consecutive_failures = 0;
205204

206205
//Reset game
207206
pbf_press_button(context, BUTTON_HOME, 200ms, 2000ms);

0 commit comments

Comments
 (0)