mirror of
https://github.com/esphome/esphome.git
synced 2026-01-09 11:40:50 -07:00
[uart] Combine log statements to reduce loop blocking (#12855)
This commit is contained in:
@@ -120,8 +120,10 @@ void LibreTinyUARTComponent::setup() {
|
||||
|
||||
void LibreTinyUARTComponent::dump_config() {
|
||||
bool is_software = this->hardware_idx_ == -1;
|
||||
ESP_LOGCONFIG(TAG, "UART Bus:");
|
||||
ESP_LOGCONFIG(TAG, " Type: %s", UART_TYPE[is_software]);
|
||||
ESP_LOGCONFIG(TAG,
|
||||
"UART Bus:\n"
|
||||
" Type: %s",
|
||||
UART_TYPE[is_software]);
|
||||
if (!is_software) {
|
||||
ESP_LOGCONFIG(TAG, " Port number: %d", this->hardware_idx_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user