Skip to content

Commit e74a4e5

Browse files
authored
Merge pull request #9181 from bill88t/fix9180
Switch to `serial_write` for the one line clear that is captured by `boot_out.txt`
2 parents c978768 + 3e8cf0d commit e74a4e5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,11 @@ STATIC bool maybe_run_list(const char *const *filenames, size_t n_filenames) {
299299
if (_current_executing_filename == NULL) {
300300
return false;
301301
}
302-
mp_hal_stdout_tx_str(line_clear);
302+
303+
// This function is used for `boot.py` and is thus logged to `boot_out.txt`.
304+
// We do not want the line clear to be logged.
305+
// The function `serial_write` is the only function that isn't logged into the file.
306+
serial_write(line_clear);
303307
mp_hal_stdout_tx_str(_current_executing_filename);
304308
serial_write_compressed(MP_ERROR_TEXT(" output:\n"));
305309

0 commit comments

Comments
 (0)