mirror of
https://github.com/esphome/esphome.git
synced 2025-10-05 11:23:47 +01:00
safety
This commit is contained in:
@@ -52,6 +52,7 @@ template<class T> class Queue {
|
|||||||
// With a queue limit of 40-64 events and normal processing, dropping events should
|
// With a queue limit of 40-64 events and normal processing, dropping events should
|
||||||
// be extremely rare. When it does approach capacity, being off by 1-2 events is
|
// be extremely rare. When it does approach capacity, being off by 1-2 events is
|
||||||
// acceptable to avoid blocking the BLE stack's time-sensitive callbacks.
|
// acceptable to avoid blocking the BLE stack's time-sensitive callbacks.
|
||||||
|
// Trade-off: We prefer occasional dropped events over potential BLE stack delays.
|
||||||
return q_.size();
|
return q_.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user