fix(remote_receiver): Add missing pin setup for ESP32 (#1252)

This commit is contained in:
Luke Fitzgerald 2020-09-20 03:40:33 +01:00 committed by Guillermo Ruffino
parent f7e6195466
commit 704470d606

View File

@ -11,6 +11,7 @@ static const char *TAG = "remote_receiver.esp32";
void RemoteReceiverComponent::setup() {
ESP_LOGCONFIG(TAG, "Setting up Remote Receiver...");
this->pin_->setup();
rmt_config_t rmt{};
this->config_rmt(rmt);
rmt.gpio_num = gpio_num_t(this->pin_->get_pin());