Yeah, had Port instead of Lat.

https://www.picbasic.co.uk/forum/sho...s-the-mainloop


I switched this to WDTE=OFF and it no longer resets.

(have some reading to do on WDTE)