mirror of
https://github.com/esphome/esphome.git
synced 2026-09-18 10:38:38 +00:00
[ld2412] Use a user provided default constructor for EngineeringModeSwitch (#19190)
This commit is contained in:
@@ -7,7 +7,8 @@ namespace esphome::ld2412 {
|
||||
|
||||
class EngineeringModeSwitch final : public switch_::Switch, public Parented<LD2412Component> {
|
||||
public:
|
||||
EngineeringModeSwitch() = default;
|
||||
// User provided, not "= default": `new(p) EngineeringModeSwitch()` would zero-fill .bss that is already zero.
|
||||
EngineeringModeSwitch() {}
|
||||
|
||||
protected:
|
||||
void write_state(bool state) override;
|
||||
|
||||
Reference in New Issue
Block a user