[bluetooth_connection] Use a user provided default constructor for BluetoothConnection (#19200)

This commit is contained in:
J. Nick Koston
2026-09-16 18:10:21 +12:00
committed by GitHub
parent 2ffa57c907
commit f30a3bc3e1
@@ -37,6 +37,9 @@ enum class PendingAck : uint8_t {
class BluetoothConnection final : public ble_device_base::GattClientListener {
public:
// User provided, not "= default": `new(p) BluetoothConnection()` would zero-fill .bss that is already zero.
BluetoothConnection() {}
/// Wire the platform backend. Called from codegen before setup.
void set_backend(ble_device_base::BLEGattConnection *backend) {
this->backend_ = backend;