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;
}
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:
which does not have any return statement at the end. I think that the code for this function should instead be: