[max44009] Move set_mode into the header (#19297)

This commit is contained in:
J. Nick Koston
2026-09-16 17:13:20 +12:00
committed by GitHub
parent 70097ae02f
commit f95a876ef2
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -134,6 +134,4 @@ void MAX44009Sensor::write_(uint8_t reg, uint8_t value) {
}
}
void MAX44009Sensor::set_mode(MAX44009Mode mode) { this->mode_ = mode; }
} // namespace esphome::max44009
+1 -1
View File
@@ -16,7 +16,7 @@ class MAX44009Sensor final : public sensor::Sensor, public PollingComponent, pub
void setup() override;
void dump_config() override;
void update() override;
void set_mode(MAX44009Mode mode);
void set_mode(MAX44009Mode mode) { this->mode_ = mode; }
bool set_continuous_mode();
bool set_low_power_mode();