mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
fix(esp_stdio): remap console select fd bits to sink device
Map logical /dev/console fds to the primary sink fd for select. This avoids probing UART1/UART2 for stdout/stderr and keeps UART select state consistent. Add stdio regression checks for logical fd mapping and symmetric uart_end_select teardown.
This commit is contained in:
@@ -588,7 +588,6 @@ static esp_err_t uart_end_select(void *end_select_args)
|
||||
if (s_uart_select_count[i] == 0) {
|
||||
uart_set_select_notif_callback(i, NULL);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
portEXIT_CRITICAL(uart_get_selectlock());
|
||||
|
||||
Reference in New Issue
Block a user