Skip to content

Commit

Permalink
mp: use assert instead of infinite loop
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan-Velickovic <[email protected]>
  • Loading branch information
Ivan-Velickovic committed Oct 8, 2024
1 parent 6662689 commit b559878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/micropython/micropython.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void init(void) {

if (microkit_cothread_spawn(t_mp_entrypoint, NULL) == LIBMICROKITCO_NULL_HANDLE) {
printf("MP|ERROR: Cannot initialise Micropython cothread\n");
while (true) {}
assert(false);
}

// Run the Micropython cothread
Expand Down

0 comments on commit b559878

Please sign in to comment.