[ld2412] Inline trivial gate threshold number setters (#14937)

This commit is contained in:
J. Nick Koston
2026-03-18 13:02:07 -10:00
committed by GitHub
parent 9f4c773963
commit a2a048e3bf
2 changed files with 4 additions and 9 deletions

View File

@@ -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() {

View File

@@ -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