Im having a little problem with my code. here i called a function to make a test, if it passed it goes back and continue if it doesn't it goes to main loop.
void loop()
{
if (call == 1)
{
funca();
}
print("waiting..");
}
void funca()
{
gsmtest();
print("calling..")
}
void gsmtest()
{
if (test==1)
{
print("test ok");
}
else
{
print("error");
loop();
}
}
here is a simple example, if u press call, the code goes to funca which make a call to gsmtest. if test goes ok it print "calling.." if not it print "error" and goes back to loop. for some reasons here if test failed, it print error and than goes to loop after that it print "calling.." (continuing funca which i want to abort it if test goes wrong) .