I'm a geek with no one here to understand just how much of a geek I am today so I'll confess my fumble here..
Working on an Arduino project Master/Slave serial communication.
All was working great the first loop around but not working right after that..
I was using readStringUntil for the first time to get error codes from the slave Arduinos.
I wasn't aware or really didn't think about it but I forgot to clear out the serial buffers after each loop..
So the next loop around it was just reading what was left in the buffer thus messing up my program..
So now I know to "Always Flush" that buffer..
Working on an Arduino project Master/Slave serial communication.
All was working great the first loop around but not working right after that..
I was using readStringUntil for the first time to get error codes from the slave Arduinos.
I wasn't aware or really didn't think about it but I forgot to clear out the serial buffers after each loop..
So the next loop around it was just reading what was left in the buffer thus messing up my program..
So now I know to "Always Flush" that buffer..
Last edited: