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.

[ Full content available at: https://github.com/apache/mynewt-core/pull/1390 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to