Exceed maximum nested in SPIN?
MacTuxLin
Posts: 821
Hi All,
May I know if there are any error msg when compiling if the number of nested block is more than 8 or will I just experience weird results including prop restarting in the mist of running the code?
May I know if there are any error msg when compiling if the number of nested block is more than 8 or will I just experience weird results including prop restarting in the mist of running the code?
Comments
Just done another test script that blinks the LED. If I have 9 repeat loops within a method, yes, compile error. But if I break into sub methods, it compiled without errors but had funny results. Reason I asked is because my main project has similar nesting process but I tend to get very weird results (e.g. prop hanging & restarting). Ruled out hardware as I've tried different prop & PC I'll continue debugging ...
This one is working:
But, this one is not working right: