mirror of
https://github.com/esphome/esphome.git
synced 2026-03-24 15:06:08 +08:00
[ld2412] Inline trivial gate threshold number setters (#14937)
This commit is contained in:
@@ -825,13 +825,6 @@ void LD2412Component::get_gate_threshold() {
|
||||
this->send_command_(CMD_QUERY_STATIC_GATE_SENS, nullptr, 0);
|
||||
}
|
||||
|
||||
void LD2412Component::set_gate_still_threshold_number(uint8_t gate, number::Number *n) {
|
||||
this->gate_still_threshold_numbers_[gate] = n;
|
||||
}
|
||||
|
||||
void LD2412Component::set_gate_move_threshold_number(uint8_t gate, number::Number *n) {
|
||||
this->gate_move_threshold_numbers_[gate] = n;
|
||||
}
|
||||
#endif
|
||||
|
||||
void LD2412Component::set_light_out_control() {
|
||||
|
||||
@@ -85,8 +85,10 @@ class LD2412Component : public Component, public uart::UARTDevice {
|
||||
void set_light_out_control();
|
||||
void set_basic_config();
|
||||
#ifdef USE_NUMBER
|
||||
void set_gate_move_threshold_number(uint8_t gate, number::Number *n);
|
||||
void set_gate_still_threshold_number(uint8_t gate, number::Number *n);
|
||||
void set_gate_move_threshold_number(uint8_t gate, number::Number *n) { this->gate_move_threshold_numbers_[gate] = n; }
|
||||
void set_gate_still_threshold_number(uint8_t gate, number::Number *n) {
|
||||
this->gate_still_threshold_numbers_[gate] = n;
|
||||
}
|
||||
void set_gate_threshold();
|
||||
void get_gate_threshold();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user