diff --git a/src/hci_transport.h b/src/hci_transport.h index 7c0989c88..70b13a16f 100644 --- a/src/hci_transport.h +++ b/src/hci_transport.h @@ -128,6 +128,7 @@ typedef struct { uint32_t baudrate_main; // = 0: same as initial baudrate int flowcontrol; // const char *device_name; + int parity; // see btstack_uart.h BTSTACK_UART_PARITY } hci_transport_config_uart_t; diff --git a/src/hci_transport_h4.c b/src/hci_transport_h4.c index 66229897e..f606aa075 100644 --- a/src/hci_transport_h4.c +++ b/src/hci_transport_h4.c @@ -410,6 +410,7 @@ static void hci_transport_h4_init(const void * transport_config){ hci_transport_config_uart_t * hci_transport_config_uart = (hci_transport_config_uart_t*) transport_config; uart_config.baudrate = hci_transport_config_uart->baudrate_init; uart_config.flowcontrol = hci_transport_config_uart->flowcontrol; + uart_config.parity = hci_transport_config_uart->parity; uart_config.device_name = hci_transport_config_uart->device_name; // set state to off diff --git a/src/hci_transport_h5.c b/src/hci_transport_h5.c index 601fce37c..bced9edc2 100644 --- a/src/hci_transport_h5.c +++ b/src/hci_transport_h5.c @@ -755,6 +755,7 @@ static void hci_transport_h5_init(const void * transport_config){ hci_transport_config_uart_t * hci_transport_config_uart = (hci_transport_config_uart_t*) transport_config; uart_config.baudrate = hci_transport_config_uart->baudrate_init; uart_config.flowcontrol = hci_transport_config_uart->flowcontrol; + uart_config.parity = hci_transport_config_uart->parity; uart_config.device_name = hci_transport_config_uart->device_name; // setup UART driver