Include Bluetooth connection slot allocations in connections free message (#8148)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2025-01-28 06:57:52 +04:00
1 parent dbf4c2c4da
commit dd18a219db
4 files changed
+21

No files matched your search

@@ -475,6 +475,11 @@ void BluetoothProxy::send_connections_free() {
api::BluetoothConnectionsFreeResponse call;
call.free = this->get_bluetooth_connections_free();
call.limit = this->get_bluetooth_connections_limit();
for (auto *connection : this->connections_) {
if (connection->address_ != 0) {
call.allocated.push_back(connection->address_);
}
}
this->api_connection_->send_bluetooth_connections_free_response(call);
}