You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2019/10/17 11:47:09 UTC

[mynewt-core] 01/21: sys/console: Update ble_monitor console_out

This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 2ccc5282718d99384c265569832c67fd8a74ce13
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Fri Oct 4 09:31:59 2019 +0200

    sys/console: Update ble_monitor console_out
    
    Some time ago console_out functions from uart_console
    and rtt_console were renamed to uart_console_unlocked,
    while console_out was moved to console to add synchronization
    between writes from different tasks.
    During this process ble_monitor_console was neglected.
    This change does the same to ble_monitor_console to prevent
    linking problems.
    Empty console_rx_restart is also added as it seems to be
    needed by console.
---
 sys/console/full/src/ble_monitor_console.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/sys/console/full/src/ble_monitor_console.c b/sys/console/full/src/ble_monitor_console.c
index cf49284..5b90a58 100644
--- a/sys/console/full/src/ble_monitor_console.c
+++ b/sys/console/full/src/ble_monitor_console.c
@@ -25,7 +25,7 @@
 #include "console/console.h"
 
 int
-console_out(int c)
+console_out_nolock(int c)
 {
     if (g_console_silence) {
         return c;
@@ -36,6 +36,15 @@ console_out(int c)
     return ble_monitor_out(c);
 }
 
+void
+console_rx_restart(void)
+{
+    /*
+     * Function required by console
+     * TODO: Check if actual body is needed.
+     */
+}
+
 int
 ble_monitor_console_is_init(void)
 {