simplify printing a compressed message
This commit is contained in:
parent
4a9ad8a942
commit
5c9f7e2fe4
5
main.c
5
main.c
@ -212,10 +212,7 @@ STATIC bool maybe_run_list(const char * const * filenames, pyexec_result_t* exec
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
mp_hal_stdout_tx_str(filename);
|
mp_hal_stdout_tx_str(filename);
|
||||||
const compressed_string_t* compressed = translate(" output:\n");
|
serial_write_compressed(translate(" output:\n"));
|
||||||
char decompressed[decompress_length(compressed)];
|
|
||||||
decompress(compressed, decompressed);
|
|
||||||
mp_hal_stdout_tx_str(decompressed);
|
|
||||||
pyexec_file(filename, exec_result);
|
pyexec_file(filename, exec_result);
|
||||||
#if CIRCUITPY_ATEXIT
|
#if CIRCUITPY_ATEXIT
|
||||||
shared_module_atexit_execute(exec_result);
|
shared_module_atexit_execute(exec_result);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user