sys/console: Disable blocking console on autocompletion
If asynchronous UART RX is enabled, we do not need to set console to
blocking mode when doing autocompletion.
@@ -515,9 +515,13 @@ console_handle_char(uint8_t byte)
break;
case '\t':
if (completion && !end) {
+#if MYNEWT_VAL(CONSOLE_UART_RX_BUF_SIZE) == 0
console_blocking_mode();
+#endif
completion(input->line, console_append_char);
+#if MYNEWT_VAL(CONSOLE_UART_RX_BUF_SIZE) == 0
console_non_blocking_mode();
+#endif
}
break;
}
