mirror of
https://github.com/esphome/esphome.git
synced 2025-01-08 05:41:44 +01:00
Update ebyte_lora_component.h
This commit is contained in:
parent
d79d054ab8
commit
6bb75f2a01
1 changed files with 0 additions and 2 deletions
|
@ -90,7 +90,6 @@ class EbyteLoraComponent : public PollingComponent, public uart::UARTDevice {
|
||||||
InternalGPIOPin *pin_m0_{nullptr};
|
InternalGPIOPin *pin_m0_{nullptr};
|
||||||
InternalGPIOPin *pin_m1_{nullptr};
|
InternalGPIOPin *pin_m1_{nullptr};
|
||||||
};
|
};
|
||||||
#ifdef USE_SWITCH
|
|
||||||
class EbyteLoraSwitch : public switch_::Switch, public Parented<EbyteLoraComponent> {
|
class EbyteLoraSwitch : public switch_::Switch, public Parented<EbyteLoraComponent> {
|
||||||
public:
|
public:
|
||||||
void set_pin(uint8_t pin) { pin_ = pin; }
|
void set_pin(uint8_t pin) { pin_ = pin; }
|
||||||
|
@ -100,6 +99,5 @@ class EbyteLoraSwitch : public switch_::Switch, public Parented<EbyteLoraCompone
|
||||||
void write_state(bool state) override { this->parent_->send_switch_info_(); }
|
void write_state(bool state) override { this->parent_->send_switch_info_(); }
|
||||||
uint8_t pin_;
|
uint8_t pin_;
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
} // namespace ebyte_lora
|
} // namespace ebyte_lora
|
||||||
} // namespace esphome
|
} // namespace esphome
|
||||||
|
|
Loading…
Reference in a new issue