Hi Roxy
Thanks for this code...
I would suggest to modify the "n" parameter to u or U just like in the G29 code. I am using repetier and could not pass a lower case n...
So the code becomes
//...