You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/09/07 19:51:46 UTC
[GitHub] ccollins476ad opened a new pull request #1390: sys/console/full:
Prevent permanent rx stall
ccollins476ad opened a new pull request #1390: sys/console/full: Prevent permanent rx stall
URL: https://github.com/apache/mynewt-core/pull/1390
When the console receive buffer becomes full, the UART enters a "stalled" state. While stalled, the UART ceases to receive bytes. This makes sense - there is no space for any bytes if it kept receiving them.
The problem is that nothing unstalls the UART after the console buffer is drained. Consequently, the UART is stuck in the stalled state and never receives any more data.
This PR fixes this problem as follows:
1. In the console receive event callback, check if the buffer is full before doing any processing.
2. If the buffer was full, restart the UART before returning.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services