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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user