jump from void loop() back to void setup() ?
although did fortran programming in 70's & 80's, i've been away , new c programming. want test condition running in void loop() , if condition not met, want jump void setup() things happen once, it's thing , drop void loop() again, etc. have been easy in fortran use go to, in c see discouraged, plus apparently in c goto jumps subsequent statement, not previous section.
any suggestions? thanks.
any suggestions? thanks.
put code want able call again in function. call setup. call wherever want in loop. can call setup loop, it's normal function.
if want reset board that's little more involved still not hard. set watchdog timer , spin in empty while loop until times out , resets board.
if want reset board that's little more involved still not hard. set watchdog timer , spin in empty while loop until times out , resets board.
Arduino Forum > Using Arduino > Programming Questions > jump from void loop() back to void setup() ?
arduino
Comments
Post a Comment