My sketch is for doing a bunch of stuff for a normal press of a button, but if it's a long press a calibration routine is run instead. It is structured like this:
code that determines length of button press.
If pressed longer than 2 seconds, go to longpress() subroutine.
If pressed shorter than 2 seconds continue executing code in main loop.
I know it's a dumb question, but I can't figure out how to do it so that after completing the calibration routine it goes back to the start of loop() rather than back to where it jumped from and executing the default code for a short press. I tried putting a loop() instruction at the end of the calibration routine, but that doesn't work.