Are chained gosubs broken?
Posted: Sun Jan 24, 2016 2:35 pm
Been messing on the esp for a couple of cold days this weekend and while working on the big project came across strangeness.
Notice the delay and no crash, just goes away for 40 odd seconds and finishes. Never executes any subroutine either. Maybe it is my device and/or some corruption can someone please verify this behavior.
-------- Code ------------------
[main]
print "in main"
print time()
gosub sub1
print "Main Done"
print time()
end
[sub1]
print "in sub 1"
gosub 2
return
[sub2]
print "in sub 2"
return
-------- Output ----------------
in main
Sun Jan 24 19:27:47 2016
Main Done
Sun Jan 24 19:28:32 2016
Done...
Notice the delay and no crash, just goes away for 40 odd seconds and finishes. Never executes any subroutine either. Maybe it is my device and/or some corruption can someone please verify this behavior.
-------- Code ------------------
[main]
print "in main"
print time()
gosub sub1
print "Main Done"
print time()
end
[sub1]
print "in sub 1"
gosub 2
return
[sub2]
print "in sub 2"
return
-------- Output ----------------
in main
Sun Jan 24 19:27:47 2016
Main Done
Sun Jan 24 19:28:32 2016
Done...