Skip to content

Commit 958736e

Browse files
committed
Fix raid code being logged incorrectly.
1 parent 2231951 commit 958736e

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

SerialPrograms/Source/NintendoSwitch/DevPrograms/TestProgramSwitch.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ void TestProgram::program(MultiSwitchProgramEnvironment& env, CancellableScope&
264264
reader.read_opponent_in_summary(logger, screenshot);
265265
#endif
266266

267-
#if 1
267+
#if 0
268268
auto screenshot = feed.snapshot();
269269

270270
std::deque<OverlayBoxScope> hits;
@@ -342,7 +342,7 @@ void TestProgram::program(MultiSwitchProgramEnvironment& env, CancellableScope&
342342
#endif
343343

344344

345-
#if 0
345+
#if 1
346346
auto screenshot = feed.snapshot();
347347

348348
PokemonHome::BallReader reader(console);

SerialPrograms/Source/PokemonSwSh/Programs/Hosting/PokemonSwSh_AutoHost.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,7 @@ void run_autohost(
170170
code = raid_code->get_code();
171171
}
172172
if (!code.empty()){
173-
char str[8];
174-
for (size_t c = 0; c < 8; c++){
175-
str[c] = code[c] + '0';
176-
}
177-
env.log("Next Raid Code: " + std::string(str, sizeof(str)));
173+
env.log("Next Raid Code: " + code);
178174
pbf_press_button(context, BUTTON_PLUS, 5, 145);
179175
FastCodeEntry::numberpad_enter_code(console, context, code, true);
180176
pbf_wait(context, 180);

0 commit comments

Comments
 (0)