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:
Tomáš Rohlínek
2026-04-01 15:27:00 +02:00
parent c17caf8d23
commit 52004409ce
4 changed files with 192 additions and 8 deletions

View File

@@ -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());