mirror of
https://github.com/esphome/esphome.git
synced 2026-09-18 02:28:42 +00:00
[bluetooth_connection] Use a user provided default constructor for BluetoothConnection (#19200)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user