1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-05 19:33:47 +01:00
This commit is contained in:
J. Nick Koston
2025-06-11 13:05:30 -05:00
parent dc47faa4b6
commit 66bd4c96c4

View File

@@ -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();
} }