1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-28 08:02:23 +01:00

[core] Centralize component setup logging to reduce flash usage (#9885)

This commit is contained in:
J. Nick Koston
2025-07-25 09:27:03 -10:00
committed by GitHub
parent 2b87589562
commit b7ce8c116b
288 changed files with 26 additions and 460 deletions

View File

@@ -74,7 +74,6 @@ uint32_t ESP32ArduinoUARTComponent::get_config() {
}
void ESP32ArduinoUARTComponent::setup() {
ESP_LOGCONFIG(TAG, "Running setup");
// Use Arduino HardwareSerial UARTs if all used pins match the ones
// preconfigured by the platform. For example if RX disabled but TX pin
// is 1 we still want to use Serial.

View File

@@ -56,7 +56,6 @@ uint32_t ESP8266UartComponent::get_config() {
}
void ESP8266UartComponent::setup() {
ESP_LOGCONFIG(TAG, "Running setup");
// Use Arduino HardwareSerial UARTs if all used pins match the ones
// preconfigured by the platform. For example if RX disabled but TX pin
// is 1 we still want to use Serial.

View File

@@ -86,8 +86,6 @@ void IDFUARTComponent::setup() {
return;
}
this->uart_num_ = static_cast<uart_port_t>(next_uart_num++);
ESP_LOGCONFIG(TAG, "Running setup for UART %u", this->uart_num_);
this->lock_ = xSemaphoreCreateMutex();
xSemaphoreTake(this->lock_, portMAX_DELAY);

View File

@@ -46,8 +46,6 @@ uint16_t LibreTinyUARTComponent::get_config() {
}
void LibreTinyUARTComponent::setup() {
ESP_LOGCONFIG(TAG, "Running setup");
int8_t tx_pin = tx_pin_ == nullptr ? -1 : tx_pin_->get_pin();
int8_t rx_pin = rx_pin_ == nullptr ? -1 : rx_pin_->get_pin();
bool tx_inverted = tx_pin_ != nullptr && tx_pin_->is_inverted();

View File

@@ -52,8 +52,6 @@ uint16_t RP2040UartComponent::get_config() {
}
void RP2040UartComponent::setup() {
ESP_LOGCONFIG(TAG, "Running setup");
uint16_t config = get_config();
constexpr uint32_t valid_tx_uart_0 = __bitset({0, 12, 16, 28});