From d8f374f670113273557bae3ad214fda946eaa59d Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 16 Aug 2016 15:12:30 +0200 Subject: [PATCH] wiced: only print dot if we're waiting for CTS --- port/wiced/hci_transport_h4_wiced.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/port/wiced/hci_transport_h4_wiced.c b/port/wiced/hci_transport_h4_wiced.c index e11ec2e6d..097b7f6f0 100644 --- a/port/wiced/hci_transport_h4_wiced.c +++ b/port/wiced/hci_transport_h4_wiced.c @@ -178,11 +178,15 @@ static wiced_result_t h4_rx_worker_receive_packet(void * arg){ // executed on tx worker thread static wiced_result_t h4_tx_worker_send_packet(void * arg){ #ifdef WICED_BT_UART_MANUAL_CTS_RTS + int cts_was_raised = 0; while (platform_gpio_input_get(wiced_bt_uart_pins[WICED_BT_PIN_UART_CTS]) == WICED_TRUE){ - printf("."); - wiced_rtos_delay_milliseconds(10); + log_info("."); + wiced_rtos_delay_milliseconds(100); + cts_was_raised = 1; + } + if (cts_was_raised){ + printf("\n"); } - printf("\n"); #endif // blocking send platform_uart_transmit_bytes(wiced_bt_uart_driver, tx_worker_data_buffer, tx_worker_data_size);