Go Down

Topic: Clearing serial buffer solved (Read 117345 times) previous topic - next topic

Delta_G

#30
Jun 10, 2018, 03:38 am Last Edit: Jun 10, 2018, 03:39 am by Delta_G
Yes, print will block if the buffer is full.  cant post the code from print.h right now but it's there. 

This is the reason Serial print from an interrupt is so dangerous.  Nothing leaves the buffer because the interrupts are off and print deadlocks waiting for room in the buffer. 
|| | ||| | || | ||  ~Woodstock

Please do not PM with technical questions or comments.  Keep Arduino stuff out on the boards where it belongs.

Go Up