Quote Originally Posted by djmachine View Post

I am not familiar with UART communications. Could this purging function be omitted when using SPI?
That subroutine causes the pic to put each character into individual bytes of an array, and if the information exceeds 30 characters it dumps the whole mess and starts over.