From 219d704ce40d16a474bad619aa4214a78487d1b0 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Wed, 17 Jan 2024 11:02:44 +0900 Subject: [PATCH] Use unique_ptr --- esphome/components/esp_adf/microphone/esp_adf_microphone.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/esp_adf/microphone/esp_adf_microphone.h b/esphome/components/esp_adf/microphone/esp_adf_microphone.h index 1fe5cade1d..bb569e23e3 100644 --- a/esphome/components/esp_adf/microphone/esp_adf_microphone.h +++ b/esphome/components/esp_adf/microphone/esp_adf_microphone.h @@ -29,7 +29,7 @@ class ESPADFMicrophone : public ESPADFPipeline, public microphone::Microphone, p static void read_task(void *params); - RingBuffer *ring_buffer_; + std::unique_ptr ring_buffer_; TaskHandle_t read_task_handle_{nullptr}; QueueHandle_t read_event_queue_;