[ld2412] Inline trivial gate threshold number setters (#14937)
This commit is contained in:
1 parent
9f4c773963
commit
a2a048e3bf
2 files changed
+4
-9
No files matched your search
@@ -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