Fix ifdef

This commit is contained in:
Jesse Hills 2023-08-24 17:18:52 +12:00
parent 3190e86ba8
commit f7455ad76a
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A
6 changed files with 10 additions and 10 deletions

View file

@ -23,4 +23,4 @@ float ESPADF::get_setup_priority() const { return setup_priority::HARDWARE; }
} // namespace esp_adf
} // namespace esphome
#endif
#endif // USE_ESP_IDF

View file

@ -28,4 +28,4 @@ class ESPADF : public Component {
} // namespace esp_adf
} // namespace esphome
#endif
#endif // USE_ESP_IDF

View file

@ -1,6 +1,6 @@
#include "esp_adf_microphone.h"
#ifdef USE_ESP32
#ifdef USE_ESP_IDF
#include <driver/i2s.h>
@ -192,4 +192,4 @@ void ESPADFMicrophone::loop() {
} // namespace esp_adf
} // namespace esphome
#endif // USE_ESP32
#endif // USE_ESP_IDF

View file

@ -1,6 +1,6 @@
#pragma once
#ifdef USE_ESP32
#ifdef USE_ESP_IDF
#include "../esp_adf.h"
@ -34,4 +34,4 @@ class ESPADFMicrophone : public ESPADFPipeline, public microphone::Microphone, p
} // namespace esp_adf
} // namespace esphome
#endif // USE_ESP32
#endif // USE_ESP_IDF

View file

@ -1,6 +1,6 @@
#include "esp_adf_speaker.h"
#ifdef USE_ESP32
#ifdef USE_ESP_IDF
#include <driver/i2s.h>
@ -269,4 +269,4 @@ size_t ESPADFSpeaker::play(const uint8_t *data, size_t length) {
} // namespace esp_adf
} // namespace esphome
#endif // USE_ESP32
#endif // USE_ESP_IDF

View file

@ -1,6 +1,6 @@
#pragma once
#ifdef USE_ESP32
#ifdef USE_ESP_IDF
#include "../esp_adf.h"
@ -65,4 +65,4 @@ class ESPADFSpeaker : public ESPADFPipeline, public speaker::Speaker, public Com
} // namespace esp_adf
} // namespace esphome
#endif // USE_ESP32
#endif // USE_ESP_IDF