12 switch (this->
uart_) {
38 ESP_LOGW(TAG,
" The chosen logger UART port is not available on this board."
39 "The default port was used instead.");
47 lt_log_set_port(LT_UART_DEFAULT_SERIAL);
49 lt_log_set_port(this->
uart_ - 1);
54 ESP_LOGI(TAG,
"Log initialized");
58 switch (this->
uart_) {
60 return LOG_STR(
"DEFAULT");
62 return LOG_STR(
"UART0");
64 return LOG_STR(
"UART1");
67 return LOG_STR(
"UART2");
const LogString * get_uart_selection_()
void pre_setup()
Set up this component.
void ensure_serial_handle(uint8_t port)
Give a hardware UART its SDK handle before its Serial begin()s.
UARTSelection
Enum for logging UART selection.
ESPHOME_LOG_TAG(TAG, "logger")