mirror of
https://github.com/esphome/esphome.git
synced 2025-08-06 18:37:47 +00:00
lint
This commit is contained in:
parent
dc8f2fd37e
commit
2cc263a707
@ -56,6 +56,7 @@ static constexpr size_t FLUSH_BATCH_SIZE = 8;
|
|||||||
|
|
||||||
// Global batch buffer to avoid guard variable (saves 8 bytes)
|
// Global batch buffer to avoid guard variable (saves 8 bytes)
|
||||||
// This is initialized at program startup before any threads
|
// This is initialized at program startup before any threads
|
||||||
|
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
|
||||||
static std::vector<api::BluetoothLERawAdvertisement> batch_buffer;
|
static std::vector<api::BluetoothLERawAdvertisement> batch_buffer;
|
||||||
|
|
||||||
static std::vector<api::BluetoothLERawAdvertisement> &get_batch_buffer() { return batch_buffer; }
|
static std::vector<api::BluetoothLERawAdvertisement> &get_batch_buffer() { return batch_buffer; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user