mirror of
https://github.com/esphome/esphome.git
synced 2025-09-06 13:22:19 +01:00
Merge branch 'bluetooth_connection_churn' into integration
This commit is contained in:
@@ -80,7 +80,7 @@ void BluetoothConnection::dump_config() {
|
|||||||
|
|
||||||
void BluetoothConnection::update_allocated_slot_(uint64_t find_value, uint64_t set_value) {
|
void BluetoothConnection::update_allocated_slot_(uint64_t find_value, uint64_t set_value) {
|
||||||
auto &allocated = this->proxy_->connections_free_response_.allocated;
|
auto &allocated = this->proxy_->connections_free_response_.allocated;
|
||||||
auto it = std::find(allocated.begin(), allocated.end(), find_value);
|
auto *it = std::find(allocated.begin(), allocated.end(), find_value);
|
||||||
if (it != allocated.end()) {
|
if (it != allocated.end()) {
|
||||||
*it = set_value;
|
*it = set_value;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user