Init all tx flags

This commit is contained in:
Jonathan Swoboda 2024-11-15 10:53:36 -05:00
parent f95a9fda19
commit 1263c2500c

View file

@ -41,7 +41,13 @@ void RemoteTransmitterComponent::configure_rmt_() {
if (this->one_wire_) { if (this->one_wire_) {
channel.flags.io_loop_back = 1; channel.flags.io_loop_back = 1;
channel.flags.io_od_mode = 1; channel.flags.io_od_mode = 1;
} else {
channel.flags.io_loop_back = 0;
channel.flags.io_od_mode = 0;
} }
channel.flags.invert_out = 0;
channel.flags.with_dma = 0;
channel.intr_priority = 0;
esp_err_t error = rmt_new_tx_channel(&channel, &this->channel_); esp_err_t error = rmt_new_tx_channel(&channel, &this->channel_);
if (error != ESP_OK) { if (error != ESP_OK) {
this->error_code_ = error; this->error_code_ = error;