strange M400 goes forth and back
happens if i start print over my repetier server pro.
if i copy the same code to sd card the strange movements are gone.
Prind on same raspi 3 with octoprint works fine.
want my mony back!
Disable timelapse video or do not say to make a photo at a specified position or at every layer change. For me it looks like you have enabled that feature (hence the move and wait). If you then say to this every second or anything else frequent that is the result I guess. Would need to know your settings and gcode to analyse this into more deep.