Skip to content

Commit 0affb0b

Browse files
authored
Merge pull request #5088 from cwalther/bootout
Fix empty boot_out.txt (#5062)
2 parents 686103f + 09e6846 commit 0affb0b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,11 +633,13 @@ STATIC void __attribute__ ((noinline)) run_boot_py(safe_mode_t safe_mode) {
633633

634634
static const char * const boot_py_filenames[] = STRING_LIST("boot.py", "boot.txt");
635635
bool skip_boot_output = false;
636+
#ifdef CIRCUITPY_BOOT_OUTPUT_FILE
637+
FIL file_pointer;
638+
#endif
636639

637640
if (ok_to_run) {
638641

639642
#ifdef CIRCUITPY_BOOT_OUTPUT_FILE
640-
FIL file_pointer;
641643
boot_output_file = &file_pointer;
642644

643645
// Get the base filesystem.

0 commit comments

Comments
 (0)