mirror of
https://github.com/esphome/esphome.git
synced 2024-12-03 13:34:01 +01:00
Init all tx flags
This commit is contained in:
parent
f95a9fda19
commit
1263c2500c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user