diff --git a/source/main.c b/source/main.c index 1695ab3..241ba9e 100644 --- a/source/main.c +++ b/source/main.c @@ -29,8 +29,9 @@ loop(loop_status_t (*callback)(void)) return LOOP_EXIT; #else - for(;;) - callback(); + while(status == LOOP_CONTINUE) + status = callback(); + return status; #endif }