[sds011] Move set_rx_mode_only into the header (#19298)

This commit is contained in:
J. Nick Koston
2026-09-16 17:13:06 +12:00
committed by GitHub
parent 1eb445bacb
commit 70097ae02f
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -106,8 +106,6 @@ void SDS011Component::loop() {
}
}
void SDS011Component::set_rx_mode_only(bool rx_mode_only) { this->rx_mode_only_ = rx_mode_only; }
void SDS011Component::sds011_write_command_(const uint8_t *command_data) {
this->write_byte(SDS011_MSG_HEAD);
this->write_byte(SDS011_COMMAND_ID_REQUEST);
+1 -1
View File
@@ -12,7 +12,7 @@ class SDS011Component final : public Component, public uart::UARTDevice {
SDS011Component() = default;
/// Manually set the rx-only mode. Defaults to false.
void set_rx_mode_only(bool rx_mode_only);
void set_rx_mode_only(bool rx_mode_only) { this->rx_mode_only_ = rx_mode_only; }
void set_pm_2_5_sensor(sensor::Sensor *pm_2_5_sensor) { pm_2_5_sensor_ = pm_2_5_sensor; }
void set_pm_10_0_sensor(sensor::Sensor *pm_10_0_sensor) { pm_10_0_sensor_ = pm_10_0_sensor; }