I just can't figure it out. Please help.
luigicrafter:
I just can't figure it out. Please help.
Could you post your code or give us an example?
I didn't understand what is your problem.
I have it setup like this:
void setup() {
somecode
}
void loop() {
somecode
}
void somefunction() {
return to loop
}
that works
void somefunction()
{
some code
//and then return to the caller
}
void setup()
{
somecode // called once for you
}
void loop()
{
somefunction(); // that will be called repetitively
}
as long as you don't have an exit at the end of your somefunction() or it does not crash...The loop will loop...
What is your evidence that after somefunction() executes to does not return to loop() ?
There are reasons why it it might not return, but that would be because your code prevents it.
What does this mysterious somefunction() do ?