Content originally posted in LPCWare by frame on Wed Jul 11 00:23:14 MST 2012
That's pretty normal.
Your send function take care not to mess up characters, but what about your send buffer ?
There are no precautions to stack up send requests, i.e. queueing up your send buffers.
Each subsequent call hits the preceding somewhere in the middle, overwriting your send buffer pointer.
When inserting the delay, you start the next send only after the last one finished, so no problem...