Merge pull request #2649 from vikrant-proxy/console-rtt-minimal
sys/console/minimal: Fix RTT console compiler error for minimal console
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 @@
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 @@
os_cputime_timer_relative(&rtt_timer, itvl_ms * 1000);
}
+
+void
+console_rx_restart(void)
+{
+ os_cputime_timer_relative(&rtt_timer, 0);
+}
#endif
int