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.
This commit is contained in:
parent
def719e7a7
commit
c017f2d267
@ -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) {
|
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, len);
|
||||||
mp_hal_stdout_tx_strn(&str[i], 1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
STATIC void gap_event_handler(mp_obj_t self_in, uint16_t event_id, uint16_t conn_handle, uint16_t length, uint8_t * data) {
|
STATIC void gap_event_handler(mp_obj_t self_in, uint16_t event_id, uint16_t conn_handle, uint16_t length, uint8_t * data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user