Skip to content

Commit

Permalink
Merge pull request #5611 from jepler/issue5588
Browse files Browse the repository at this point in the history
Don't use reset reason to skip writing boot_out.txt
  • Loading branch information
tannewt authored Nov 23, 2021
2 parents 387a8a4 + f495ea4 commit 565bfeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ STATIC void __attribute__ ((noinline)) run_boot_py(safe_mode_t safe_mode) {
FATFS *fs = &vfs->fatfs;

boot_output = NULL;
bool write_boot_output = (common_hal_mcu_processor_get_reset_reason() == RESET_REASON_POWER_ON);
bool write_boot_output = true;
FIL boot_output_file;
if (f_open(fs, &boot_output_file, CIRCUITPY_BOOT_OUTPUT_FILE, FA_READ) == FR_OK) {
char *file_contents = m_new(char, boot_text.alloc);
Expand Down

0 comments on commit 565bfeb

Please sign in to comment.