Education and Teaching
Clearing serial buffer solved
Topic: Clearing serial buffer solved
(Read 109995 times)
Re: Clearing serial buffer solved
Jun 10, 2018, 03:38 am
: 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.