From 9ec67d966ae4f22103237ee0249581bef1de5a80 Mon Sep 17 00:00:00 2001 From: Jonathan Swoboda Date: Fri, 15 Nov 2024 10:59:21 -0500 Subject: [PATCH] Explicitly init all flags --- .../components/remote_transmitter/remote_transmitter_esp32.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/esphome/components/remote_transmitter/remote_transmitter_esp32.cpp b/esphome/components/remote_transmitter/remote_transmitter_esp32.cpp index c5c7126776..a146bccebf 100644 --- a/esphome/components/remote_transmitter/remote_transmitter_esp32.cpp +++ b/esphome/components/remote_transmitter/remote_transmitter_esp32.cpp @@ -74,6 +74,7 @@ void RemoteTransmitterComponent::configure_rmt_() { carrier.duty_cycle = this->carrier_duty_percent_; } carrier.flags.polarity_active_low = this->inverted_; + carrier.flags.always_on = 0; error = rmt_apply_carrier(this->channel_, &carrier); if (error != ESP_OK) { this->error_code_ = error; @@ -140,6 +141,8 @@ void RemoteTransmitterComponent::send_internal(uint32_t send_times, uint32_t sen this->transmit_trigger_->trigger(); for (uint32_t i = 0; i < send_times; i++) { rmt_transmit_config_t config{}; + config.loop_count = 0; + config.flags.eot_level = this->inverted_; esp_err_t error = rmt_transmit(this->channel_, this->encoder_, this->rmt_temp_.data(), this->rmt_temp_.size() * sizeof(rmt_symbol_word_t), &config); if (error != ESP_OK) {