Merge pull request #5088 from cwalther/bootout

Fix empty boot_out.txt (#5062)
This commit is contained in:
Dan Halbert 2021-08-02 22:16:14 -04:00 committed by GitHub
commit 0affb0b413
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
main.c
View File

@ -633,11 +633,13 @@ STATIC void __attribute__ ((noinline)) run_boot_py(safe_mode_t safe_mode) {
static const char * const boot_py_filenames[] = STRING_LIST("boot.py", "boot.txt");
bool skip_boot_output = false;
#ifdef CIRCUITPY_BOOT_OUTPUT_FILE
FIL file_pointer;
#endif
if (ok_to_run) {
#ifdef CIRCUITPY_BOOT_OUTPUT_FILE
FIL file_pointer;
boot_output_file = &file_pointer;
// Get the base filesystem.