mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 23:48:11 +01:00
Trying again with a bunch of fixes from the compiler
This commit is contained in:
parent
6182861297
commit
fde61f2a2a
2 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@
|
|||
namespace esphome {
|
||||
namespace vornado_ir {
|
||||
|
||||
static const char *TAG = "vornado_ir";
|
||||
static const char *const TAG = "vornado_ir";
|
||||
|
||||
void VornadoIR::setup() { ESP_LOGCONFIG(TAG, "Setting up VornadoIR ..."); }
|
||||
|
||||
|
@ -34,11 +34,11 @@ 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");
|
||||
auto data = transmit.get_data();
|
||||
auto *data = transmit.get_data();
|
||||
data->set_data(ir_code);
|
||||
data->set_carrier_frequency(38000);
|
||||
transmit.set_send_times(3);
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue