You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by vi...@apache.org on 2021/07/29 05:25:39 UTC

[mynewt-core] branch master updated: sys/console/rtt_console: Move console_rx_restart within CONSOLE_INPUT guards to compile correctly with CONSOLE_INPUT turned off

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 4eecfae  sys/console/rtt_console: Move console_rx_restart within CONSOLE_INPUT guards to compile correctly with CONSOLE_INPUT turned off
     new 1a60f1b  Merge pull request #2648 from vikrant-proxy/console-rtt
4eecfae is described below

commit 4eecfae4f78673a80db068f744a42e6f45ee7972
Author: Vikrant More <vi...@proxy.com>
AuthorDate: Wed Jul 28 21:54:52 2021 -0700

    sys/console/rtt_console: Move console_rx_restart within CONSOLE_INPUT guards to compile correctly with CONSOLE_INPUT turned off
---
 sys/console/full/src/rtt_console.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/sys/console/full/src/rtt_console.c b/sys/console/full/src/rtt_console.c
index cfe8c82..1f75de2 100644
--- a/sys/console/full/src/rtt_console.c
+++ b/sys/console/full/src/rtt_console.c
@@ -115,12 +115,6 @@ console_out_nolock(int character)
     return character;
 }
 
-void
-console_rx_restart(void)
-{
-    os_cputime_timer_relative(&rtt_timer, 0);
-}
-
 #if MYNEWT_VAL(CONSOLE_INPUT)
 
 #define RTT_INPUT_POLL_INTERVAL_MIN     10 /* ms */
@@ -154,6 +148,12 @@ rtt_console_poll_func(void *arg)
 
     os_cputime_timer_relative(&rtt_timer, itvl_ms * 1000);
 }
+
+void
+console_rx_restart(void)
+{
+    os_cputime_timer_relative(&rtt_timer, 0);
+}
 #endif
 
 int