1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-07 13:52:20 +01:00
This commit is contained in:
J. Nick Koston
2025-07-18 16:09:37 -10:00
parent 2c63d5c7ce
commit 6b8da2f0ca

View File

@@ -199,6 +199,11 @@ void BluetoothProxy::loop() {
return;
}
// Early return if no advertisements pending
if (this->advertisement_count_ == 0) {
return;
}
// Flush any pending BLE advertisements that have been accumulated but not yet sent
uint32_t now = App.get_loop_component_start_time();