Co-authored-by: Keith Burzinski <kbx81x@gmail.com> Co-authored-by: J. Nick Koston <nick@koston.org>
13 lines
247 B
C++
13 lines
247 B
C++
#include "baud_rate_select.h"
|
|
|
|
namespace esphome {
|
|
namespace ld2412 {
|
|
|
|
void BaudRateSelect::control(const std::string &value) {
|
|
this->publish_state(value);
|
|
this->parent_->set_baud_rate(state);
|
|
}
|
|
|
|
} // namespace ld2412
|
|
} // namespace esphome
|