From c017f2d2673007e9890a38514f2575e8627ad903 Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Tue, 13 Jun 2017 21:04:19 +0200 Subject: nrf/drivers/bluetooth: Speedup Bluetooth LE REPL. Updating mp_hal_stdout_tx_strn_cooked to pass on the whole string to mp_hal_stdout_tx_strn instead of passing byte by byte. --- nrf/drivers/bluetooth/ble_uart.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nrf/drivers/bluetooth/ble_uart.c b/nrf/drivers/bluetooth/ble_uart.c index 28356d61c..cc829750c 100644 --- a/nrf/drivers/bluetooth/ble_uart.c +++ b/nrf/drivers/bluetooth/ble_uart.c @@ -129,9 +129,7 @@ void mp_hal_stdout_tx_strn(const char *str, size_t len) { } void mp_hal_stdout_tx_strn_cooked(const char *str, mp_uint_t len) { - for (uint8_t i = 0; i < len; i++) { - mp_hal_stdout_tx_strn(&str[i], 1); - } + mp_hal_stdout_tx_strn(str, len); } STATIC void gap_event_handler(mp_obj_t self_in, uint16_t event_id, uint16_t conn_handle, uint16_t length, uint8_t * data) { -- cgit v1.2.3