mirror of
https://github.com/esphome/esphome.git
synced 2025-10-29 22:24:26 +00:00
Streamline setup() logging (s, t, u, v, w, x, y, z) (#8930)
This commit is contained in:
@@ -74,7 +74,7 @@ uint32_t ESP32ArduinoUARTComponent::get_config() {
|
||||
}
|
||||
|
||||
void ESP32ArduinoUARTComponent::setup() {
|
||||
ESP_LOGCONFIG(TAG, "Setting up UART...");
|
||||
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.
|
||||
|
||||
@@ -56,7 +56,7 @@ uint32_t ESP8266UartComponent::get_config() {
|
||||
}
|
||||
|
||||
void ESP8266UartComponent::setup() {
|
||||
ESP_LOGCONFIG(TAG, "Setting up UART bus...");
|
||||
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.
|
||||
|
||||
@@ -85,12 +85,12 @@ void IDFUARTComponent::setup() {
|
||||
#endif // USE_LOGGER
|
||||
|
||||
if (next_uart_num >= SOC_UART_NUM) {
|
||||
ESP_LOGW(TAG, "Maximum number of UART components created already.");
|
||||
ESP_LOGW(TAG, "Maximum number of UART components created already");
|
||||
this->mark_failed();
|
||||
return;
|
||||
}
|
||||
this->uart_num_ = static_cast<uart_port_t>(next_uart_num++);
|
||||
ESP_LOGCONFIG(TAG, "Setting up UART %u...", this->uart_num_);
|
||||
ESP_LOGCONFIG(TAG, "Running setup for UART %u", this->uart_num_);
|
||||
|
||||
this->lock_ = xSemaphoreCreateMutex();
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ uint16_t LibreTinyUARTComponent::get_config() {
|
||||
}
|
||||
|
||||
void LibreTinyUARTComponent::setup() {
|
||||
ESP_LOGCONFIG(TAG, "Setting up UART...");
|
||||
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();
|
||||
|
||||
@@ -52,7 +52,7 @@ uint16_t RP2040UartComponent::get_config() {
|
||||
}
|
||||
|
||||
void RP2040UartComponent::setup() {
|
||||
ESP_LOGCONFIG(TAG, "Setting up UART bus...");
|
||||
ESP_LOGCONFIG(TAG, "Running setup");
|
||||
|
||||
uint16_t config = get_config();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user