seriously simple basic loop question

Thanks for that.

Changing loop time did not affect the behaviour -- every 30 seconds a reset occurred. I powered the board from an external supply, disconnecting it from the USB, and the problem disappeared. Looks like the PC was resetting the USB/COM port, but I don't know why yet.

Thanks again.