Fixed a bug with UART that caused buffer overruns when an endstop is triggered (ie during homing routine).