diff options
| author | Glenn Ruben Bakke <glennbakke@gmail.com> | 2017-06-13 21:04:19 +0200 |
|---|---|---|
| committer | glennrub <glennbakke@gmail.com> | 2017-08-05 18:23:22 +0200 |
| commit | c017f2d2673007e9890a38514f2575e8627ad903 (patch) | |
| tree | 1af268856e3b5a84fd296a72854b762998d6a7da | |
| parent | def719e7a70e3c488a2c6721d93b642f89b26b68 (diff) | |
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.
| -rw-r--r-- | nrf/drivers/bluetooth/ble_uart.c | 4 |
1 files changed, 1 insertions, 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) { |
