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/02/28 13:31:00 UTC

[GitHub] utzig closed pull request #849: Fix build when no console device is selected

utzig closed pull request #849: Fix build when no console device is selected
URL: https://github.com/apache/mynewt-core/pull/849
 
 
   

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/minimal/src/console.c b/sys/console/minimal/src/console.c
index f4fb679f7..8fd0a176f 100644
--- a/sys/console/minimal/src/console.c
+++ b/sys/console/minimal/src/console.c
@@ -59,6 +59,12 @@ static uint8_t cur, end;
 static struct os_eventq *avail_queue;
 static struct os_eventq *lines_queue;
 
+int __attribute__((weak))
+console_out(int c)
+{
+    return c;
+}
+
 void
 console_write(const char *str, int cnt)
 {


 

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