mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
console: pass esp_console_repl_universal_t pointer to the repl task
For usb_serial_jtag REPL only, xTaskCreate was passing a pointer to esp_console_repl_com_t, while esp_console_repl_task was expecting a pointer to esp_console_repl_universal_t. The way the two structures are defined, this makes no difference, and the pointer values are the same. Still, this could potentially break in the future. (I am not sure what is the distinction between repl_com (common?) and repl_universal; it seems that `int uart_channel` could just as well be part of esp_console_repl_com_t; alternatively, as suggested in the previous commit, this structure could contain a callback function pointer, which would allow `esp_console_new_repl_*` functions to specify how stdin/stdout should be initialized by the REPL task.)
This commit is contained in:
parent
e15818c71b
commit
ff09089137
@ -181,7 +181,7 @@ esp_err_t esp_console_new_repl_usb_serial_jtag(const esp_console_dev_usb_serial_
|
||||
|
||||
/* spawn a single thread to run REPL */
|
||||
if (xTaskCreate(esp_console_repl_task, "console_repl", repl_config->task_stack_size,
|
||||
&usb_serial_jtag_repl->repl_com, repl_config->task_priority, &usb_serial_jtag_repl->repl_com.task_hdl) != pdTRUE) {
|
||||
usb_serial_jtag_repl, repl_config->task_priority, &usb_serial_jtag_repl->repl_com.task_hdl) != pdTRUE) {
|
||||
ret = ESP_FAIL;
|
||||
goto _exit;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user