mirror of
https://github.com/esphome/esphome.git
synced 2026-09-18 10:38:38 +00:00
[sds011] Move set_rx_mode_only into the header (#19298)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user