Trying to fix static analyzer complaints

This commit is contained in:
Jordan Zucker 2024-11-18 10:42:29 -08:00
parent fdc7f59465
commit ea3fca4b99
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ void VornadoIR::send_decrease() {
this->transmit_(VORNADO_IR_DECREASE_TIMINGS); this->transmit_(VORNADO_IR_DECREASE_TIMINGS);
} }
void VornadoIR::transmit_(RawTimings ir_code) { void VornadoIR::transmit_(const RawTimings &ir_code) {
ESP_LOGD(TAG, "Sending ir_code"); ESP_LOGD(TAG, "Sending ir_code");
auto transmit = this->transmitter_->transmit(); auto transmit = this->transmitter_->transmit();
ESP_LOGD(TAG, "Sending ir_code got transmitter"); ESP_LOGD(TAG, "Sending ir_code got transmitter");

View file

@ -17,7 +17,7 @@ class VornadoIR : public Component, public remote_base::RemoteTransmittable {
void loop() override; void loop() override;
void dump_config() override; void dump_config() override;
// general functions // general functions
void transmit_(RawTimings ir_code); void transmit_(const RawTimings &ir_code);
// direct actions // direct actions
void send_power_toggle(); void send_power_toggle();
void send_change_direction(); void send_change_direction();