1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-28 21:53:48 +00:00

[core] add ring buffer destructor (#7500)

This commit is contained in:
Kevin Ahrendt
2024-09-26 17:25:20 -04:00
committed by GitHub
parent 21fbbc5fb9
commit 3b1b1071f1
2 changed files with 15 additions and 2 deletions

View File

@@ -12,6 +12,8 @@ namespace esphome {
class RingBuffer {
public:
~RingBuffer();
/**
* @brief Reads from the ring buffer, waiting up to a specified number of ticks if necessary.
*
@@ -83,6 +85,7 @@ class RingBuffer {
StreamBufferHandle_t handle_;
StaticStreamBuffer_t structure_;
uint8_t *storage_;
size_t size_{0};
};
} // namespace esphome