Verified Commit 083c1064 authored by Rahix's avatar Rahix
Browse files

feat(pycardium): Restart repl on ^D



Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
parent 86682974
......@@ -16,13 +16,12 @@ int main(void)
/* TMR5 is used to notify on keyboard interrupt */
NVIC_EnableIRQ(TMR5_IRQn);
gc_init(heap, heap + sizeof(heap));
mp_init();
pyexec_friendly_repl();
while (1) {
;
gc_init(heap, heap + sizeof(heap));
mp_init();
pyexec_friendly_repl();
mp_deinit();
}
}
......
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