Skip to content

Commit 0bea017

Browse files
committed
Add some comments for the line clear
1 parent 511c0e6 commit 0bea017

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,10 @@ STATIC bool maybe_run_list(const char *const *filenames, size_t n_filenames) {
299299
if (_current_executing_filename == NULL) {
300300
return false;
301301
}
302+
303+
// This function is used for `boot.py` and is then logged into `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.
302306
serial_write(line_clear);
303307
mp_hal_stdout_tx_str(_current_executing_filename);
304308
serial_write_compressed(MP_ERROR_TEXT(" output:\n"));

0 commit comments

Comments
 (0)