Commit f2d8b3c8 authored by Rahix's avatar Rahix
Browse files

chore(pycardium): Refactor header printing code



Always print the pycardium header and a short message afterwards what
pycardium is about to do.
Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
parent 7befa10d
......@@ -32,11 +32,19 @@ int main(void)
pycardium_hal_init();
epic_uart_write_str(header, sizeof(header));
if (cnt < 0) {
printf("pycardium: Error fetching args: %d\n", cnt);
} else if (cnt > 0) {
epic_uart_write_str(header, sizeof(header));
/* Go to REPL instead. */
cnt = 0;
}
if (cnt > 0) {
printf(" Loading %s ...\n", script_name);
} else {
printf(" Entering REPL ...\n\n");
}
mp_stack_set_top(&__StackTop);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment