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/10/31 08:06:37 UTC

[GitHub] mkiiskila closed pull request #1494: changes in uart_console to avoid filling buffer when UART is suspended

mkiiskila closed pull request #1494: changes in uart_console to avoid filling buffer when UART is suspended
URL: https://github.com/apache/mynewt-core/pull/1494
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/sys/console/full/src/uart_console.c b/sys/console/full/src/uart_console.c
index bd40ff7fd9..df3ce5c4f8 100644
--- a/sys/console/full/src/uart_console.c
+++ b/sys/console/full/src/uart_console.c
@@ -90,7 +90,8 @@ uart_console_queue_char(struct uart_dev *uart_dev, uint8_t ch)
 {
     int sr;
 
-    if ((uart_dev->ud_dev.od_flags & OS_DEV_F_STATUS_OPEN) == 0) {
+    if (((uart_dev->ud_dev.od_flags & OS_DEV_F_STATUS_OPEN) == 0) ||
+	((uart_dev->ud_dev.od_flags & OS_DEV_F_STATUS_SUSPENDED) != 0)) {
         return;
     }
 


 

----------------------------------------------------------------
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