I think that a great way to do my if statement at the end. I can call my own macro end code for the Duet. The Repetier will not know what that means and march along the added end code that the slicer has just for it. In my Duet end macro I can call the M0 command so it just stops after what I wanted it to do and not finish the code for the Repetier that is in the gcode file.
Also apparently I am trying to solve some problems that are not an issue on the Duet3D. 😅
Thanks,
Lucidwolf
PS. The Duet3D has spoiled me for sure over a Ramps compatible Mega. Its going to be hard to go back.