fixed issue with rotation in looping mode. Sketch goes into test mode automatically if it cannot connect to the printer