mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
Init all flags
This commit is contained in:
parent
0b305eabe5
commit
f95a9fda19
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,10 @@ void RemoteReceiverComponent::setup() {
|
|||
channel.resolution_hz = 1 * 1000 * 1000;
|
||||
channel.mem_block_symbols = MEM_BLOCK_SIZE * this->mem_block_num_;
|
||||
channel.gpio_num = gpio_num_t(this->pin_->get_pin());
|
||||
channel.intr_priority = 3;
|
||||
channel.flags.invert_in = 0;
|
||||
channel.flags.with_dma = 0;
|
||||
channel.flags.io_loop_back = 0;
|
||||
esp_err_t error = rmt_new_rx_channel(&channel, &this->channel_);
|
||||
if (error != ESP_OK) {
|
||||
this->error_code_ = error;
|
||||
|
|
Loading…
Reference in a new issue