-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Nice catch from a customer:
The mstime_start function is supposed to return a nonzero number if successful, or zero if unsuccessful, as this screenshot of the documentation shows:
However, I noticed that the code for the function is:
int mstime_start()
{
mstime_stop();
cog = 1 + cogstart(ms_timer, NULL, stack, sizeof(stack));
}
which does not have any return statement at the end. I think that the code for this function should instead be:
int mstime_start()
{
mstime_stop();
cog = 1 + cogstart(ms_timer, NULL, stack, sizeof(stack));
return cog;
}
Metadata
Metadata
Assignees
Labels
No labels