[ld2412] Use a user provided default constructor for StartDynamicBackgroundCorrectionButton

This commit is contained in:
J. Nick Koston
2026-09-12 05:28:16 -05:00
parent ebb9037ea1
commit 69cdb7e52e
@@ -7,7 +7,9 @@ namespace esphome::ld2412 {
class StartDynamicBackgroundCorrectionButton final : public button::Button, public Parented<LD2412Component> {
public:
StartDynamicBackgroundCorrectionButton() = default;
// User provided, not "= default": `new(p) StartDynamicBackgroundCorrectionButton()` would zero-fill .bss that is
// already zero.
StartDynamicBackgroundCorrectionButton() {}
protected:
void press_action() override;