From ea3fca4b99abb9b2592856d8fbea54f300d15d32 Mon Sep 17 00:00:00 2001 From: Jordan Zucker Date: Mon, 18 Nov 2024 10:42:29 -0800 Subject: [PATCH] Trying to fix static analyzer complaints --- esphome/components/vornado_ir/vornado_ir.cpp | 2 +- esphome/components/vornado_ir/vornado_ir.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/vornado_ir/vornado_ir.cpp b/esphome/components/vornado_ir/vornado_ir.cpp index 91db67d70d..11f2525983 100644 --- a/esphome/components/vornado_ir/vornado_ir.cpp +++ b/esphome/components/vornado_ir/vornado_ir.cpp @@ -34,7 +34,7 @@ void VornadoIR::send_decrease() { 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"); auto transmit = this->transmitter_->transmit(); ESP_LOGD(TAG, "Sending ir_code got transmitter"); diff --git a/esphome/components/vornado_ir/vornado_ir.h b/esphome/components/vornado_ir/vornado_ir.h index 460ac37d9a..68b063b4d1 100644 --- a/esphome/components/vornado_ir/vornado_ir.h +++ b/esphome/components/vornado_ir/vornado_ir.h @@ -17,7 +17,7 @@ class VornadoIR : public Component, public remote_base::RemoteTransmittable { void loop() override; void dump_config() override; // general functions - void transmit_(RawTimings ir_code); + void transmit_(const RawTimings &ir_code); // direct actions void send_power_toggle(); void send_change_direction();