mirror of
https://github.com/esphome/esphome.git
synced 2026-09-18 02:28:42 +00:00
[ld2412] Use a user provided default constructor for DistanceResolutionSelect (#19185)
This commit is contained in:
@@ -7,7 +7,8 @@ namespace esphome::ld2412 {
|
||||
|
||||
class DistanceResolutionSelect final : public select::Select, public Parented<LD2412Component> {
|
||||
public:
|
||||
DistanceResolutionSelect() = default;
|
||||
// User provided, not "= default": `new(p) DistanceResolutionSelect()` would zero-fill .bss that is already zero.
|
||||
DistanceResolutionSelect() {}
|
||||
|
||||
protected:
|
||||
void control(size_t index) override;
|
||||
|
||||
Reference in New Issue
Block a user