If I got this right:
If I have some data in the serial buffer, then I go serial.read the processor will read the first byte of data in the buffer, executing serial.read successive times reads the next byte and the next.
So there must be a pointer, is there a way I can reset said pointer to zero.
I want to mod some existing software and make it 'think' the serial buffer hasnt been messed with.
If I have some data in the serial buffer, then I go serial.read the processor will read the first byte of data in the buffer, executing serial.read successive times reads the next byte and the next.
So there must be a pointer, is there a way I can reset said pointer to zero.
I want to mod some existing software and make it 'think' the serial buffer hasnt been messed with.