feature(uart_driver_install): To fit some modules, add invalid parameters in uart_driver_install

This commit is contained in:
Chen Zheng Wei
2019-09-04 14:47:11 +08:00
parent 6ada81237e
commit 47a13e19cc
7 changed files with 9 additions and 8 deletions

View File

@ -46,7 +46,7 @@ static void echo_task()
.flow_ctrl = UART_HW_FLOWCTRL_DISABLE
};
uart_param_config(UART_NUM_0, &uart_config);
uart_driver_install(UART_NUM_0, BUF_SIZE * 2, 0, 0, NULL);
uart_driver_install(UART_NUM_0, BUF_SIZE * 2, 0, 0, NULL, 0);
// Configure a temporary buffer for the incoming data
uint8_t *data = (uint8_t *) malloc(BUF_SIZE);