Skip to content
Snippets Groups Projects
Verified Commit b5a3f1b2 authored by rahix's avatar rahix
Browse files

fix(pycardium): Show Pycardium header every time


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent 86354656
No related branches found
No related tags found
No related merge requests found
...@@ -30,11 +30,10 @@ int main(void) ...@@ -30,11 +30,10 @@ int main(void)
pycardium_hal_init(); pycardium_hal_init();
epic_uart_write_str(header, sizeof(header));
if (cnt < 0) { if (cnt < 0) {
printf("pycardium: Error fetching args: %d\n", cnt); printf("pycardium: Error fetching args: %d\n", cnt);
} else if (cnt > 0) { } else if (cnt > 0) {
epic_uart_write_str(header, sizeof(header));
printf(" Loading %s ...\n", script_name); printf(" Loading %s ...\n", script_name);
} }
...@@ -50,6 +49,7 @@ int main(void) ...@@ -50,6 +49,7 @@ int main(void)
pyexec_file_if_exists(script_name); pyexec_file_if_exists(script_name);
} }
epic_uart_write_str(header, sizeof(header));
pyexec_friendly_repl(); pyexec_friendly_repl();
mp_deinit(); mp_deinit();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment