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

feat(pycardium): Restart repl on ^D


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent 86682974
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment