I am receiving serial data and placing it into a buffer.
In main I am using a pointer to view the elements of the buffer.
I work my way through the buffer usingCode:volatile char *pointer; pointer = pc_rx_buffer;
If the buffer created is,Code:pointer++;
What is the correct way to test whether my pointer is at the last element of my buffer, so that I can reset my pointer to the beginning of my buffer?Code:pc_rx_buffer[PC_Rx_BUFFER_SIZE])
Im sure this is quite simple, but I'm through with scratching my head about this so I thought i would just ask.