mirror of
https://github.com/esphome/esphome.git
synced 2025-09-28 08:02:23 +01:00
Remove unnecessary ellipsis (#8964)
This commit is contained in:
@@ -7,7 +7,7 @@ namespace uart {
|
||||
static const char *const TAG = "uart.button";
|
||||
|
||||
void UARTButton::press_action() {
|
||||
ESP_LOGD(TAG, "'%s': Sending data...", this->get_name().c_str());
|
||||
ESP_LOGD(TAG, "'%s': Sending data", this->get_name().c_str());
|
||||
this->write_array(this->data_.data(), this->data_.size());
|
||||
}
|
||||
|
||||
|
@@ -19,11 +19,11 @@ void UARTSwitch::loop() {
|
||||
|
||||
void UARTSwitch::write_command_(bool state) {
|
||||
if (state && !this->data_on_.empty()) {
|
||||
ESP_LOGD(TAG, "'%s': Sending on data...", this->get_name().c_str());
|
||||
ESP_LOGD(TAG, "'%s': Sending on data", this->get_name().c_str());
|
||||
this->write_array(this->data_on_.data(), this->data_on_.size());
|
||||
}
|
||||
if (!state && !this->data_off_.empty()) {
|
||||
ESP_LOGD(TAG, "'%s': Sending off data...", this->get_name().c_str());
|
||||
ESP_LOGD(TAG, "'%s': Sending off data", this->get_name().c_str());
|
||||
this->write_array(this->data_off_.data(), this->data_off_.size());
|
||||
}
|
||||
}
|
||||
|
@@ -191,7 +191,7 @@ bool ESP32ArduinoUARTComponent::read_array(uint8_t *data, size_t len) {
|
||||
|
||||
int ESP32ArduinoUARTComponent::available() { return this->hw_serial_->available(); }
|
||||
void ESP32ArduinoUARTComponent::flush() {
|
||||
ESP_LOGVV(TAG, " Flushing...");
|
||||
ESP_LOGVV(TAG, " Flushing");
|
||||
this->hw_serial_->flush();
|
||||
}
|
||||
|
||||
|
@@ -99,7 +99,7 @@ void ESP8266UartComponent::setup() {
|
||||
}
|
||||
|
||||
void ESP8266UartComponent::load_settings(bool dump_config) {
|
||||
ESP_LOGCONFIG(TAG, "Loading UART bus settings...");
|
||||
ESP_LOGCONFIG(TAG, "Loading UART bus settings");
|
||||
if (this->hw_serial_ != nullptr) {
|
||||
SerialConfig config = static_cast<SerialConfig>(get_config());
|
||||
this->hw_serial_->begin(this->baud_rate_, config);
|
||||
@@ -193,7 +193,7 @@ int ESP8266UartComponent::available() {
|
||||
}
|
||||
}
|
||||
void ESP8266UartComponent::flush() {
|
||||
ESP_LOGVV(TAG, " Flushing...");
|
||||
ESP_LOGVV(TAG, " Flushing");
|
||||
if (this->hw_serial_ != nullptr) {
|
||||
this->hw_serial_->flush();
|
||||
} else {
|
||||
|
@@ -234,7 +234,7 @@ int IDFUARTComponent::available() {
|
||||
}
|
||||
|
||||
void IDFUARTComponent::flush() {
|
||||
ESP_LOGVV(TAG, " Flushing...");
|
||||
ESP_LOGVV(TAG, " Flushing");
|
||||
xSemaphoreTake(this->lock_, portMAX_DELAY);
|
||||
uart_wait_tx_done(this->uart_num_, portMAX_DELAY);
|
||||
xSemaphoreGive(this->lock_);
|
||||
|
@@ -109,7 +109,7 @@ HostUartComponent::~HostUartComponent() {
|
||||
}
|
||||
|
||||
void HostUartComponent::setup() {
|
||||
ESP_LOGCONFIG(TAG, "Opening UART port...");
|
||||
ESP_LOGCONFIG(TAG, "Opening UART port");
|
||||
speed_t baud = get_baud(this->baud_rate_);
|
||||
if (baud == B0) {
|
||||
ESP_LOGE(TAG, "Unsupported baud rate: %d", this->baud_rate_);
|
||||
@@ -283,7 +283,7 @@ void HostUartComponent::flush() {
|
||||
return;
|
||||
}
|
||||
tcflush(this->file_descriptor_, TCIOFLUSH);
|
||||
ESP_LOGV(TAG, " Flushing...");
|
||||
ESP_LOGV(TAG, " Flushing");
|
||||
}
|
||||
|
||||
void HostUartComponent::update_error_(const std::string &error) {
|
||||
|
@@ -145,7 +145,7 @@ bool LibreTinyUARTComponent::read_array(uint8_t *data, size_t len) {
|
||||
|
||||
int LibreTinyUARTComponent::available() { return this->serial_->available(); }
|
||||
void LibreTinyUARTComponent::flush() {
|
||||
ESP_LOGVV(TAG, " Flushing...");
|
||||
ESP_LOGVV(TAG, " Flushing");
|
||||
this->serial_->flush();
|
||||
}
|
||||
|
||||
|
@@ -174,7 +174,7 @@ bool RP2040UartComponent::read_array(uint8_t *data, size_t len) {
|
||||
}
|
||||
int RP2040UartComponent::available() { return this->serial_->available(); }
|
||||
void RP2040UartComponent::flush() {
|
||||
ESP_LOGVV(TAG, " Flushing...");
|
||||
ESP_LOGVV(TAG, " Flushing");
|
||||
this->serial_->flush();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user