[ld2412] Use a user provided default constructor for BaudRateSelect (#19184)

This commit is contained in:
J. Nick Koston
2026-09-16 18:16:58 +12:00
committed by GitHub
parent d16a1ec288
commit 711d016a50
@@ -7,7 +7,8 @@ namespace esphome::ld2412 {
class BaudRateSelect final : public select::Select, public Parented<LD2412Component> {
public:
BaudRateSelect() = default;
// User provided, not "= default": `new(p) BaudRateSelect()` would zero-fill .bss that is already zero.
BaudRateSelect() {}
protected:
void control(size_t index) override;