Skip to content

Commit c017f2d

Browse files
committed
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.
1 parent def719e commit c017f2d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

nrf/drivers/bluetooth/ble_uart.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,7 @@ void mp_hal_stdout_tx_strn(const char *str, size_t len) {
129129
}
130130

131131
void mp_hal_stdout_tx_strn_cooked(const char *str, mp_uint_t len) {
132-
for (uint8_t i = 0; i < len; i++) {
133-
mp_hal_stdout_tx_strn(&str[i], 1);
134-
}
132+
mp_hal_stdout_tx_strn(str, len);
135133
}
136134

137135
STATIC void gap_event_handler(mp_obj_t self_in, uint16_t event_id, uint16_t conn_handle, uint16_t length, uint8_t * data) {

0 commit comments

Comments
 (0)