lancaster-university / codal-core

MIT License
11 stars 28 forks source link

Fix for Serial ASYNC mode incorrectly truncating buffers #146

Closed JohnVidler closed 2 years ago

JohnVidler commented 2 years ago

This PR alters ASYNC serial send behaviour to now deschedule the current fiber for zero ticks if the txbuffer is full to allow the hardware to drain.

The previous behaviour would effectively truncate the buffer instead; see this bug: https://github.com/lancaster-university/codal-microbit-v2/issues/149