mirror of
https://github.com/esphome/esphome.git
synced 2024-12-27 16:01:43 +01:00
More suggestions
This commit is contained in:
parent
80952aad84
commit
e9c4cbdfe9
2 changed files with 1 additions and 2 deletions
|
@ -24,7 +24,6 @@ enum ModeType {
|
|||
MODE_3_CONFIGURATION = 3,
|
||||
MODE_3_PROGRAM = 3,
|
||||
MODE_3_SLEEP = 3,
|
||||
MODE_INIT = 0xFF
|
||||
};
|
||||
class Lora : public PollingComponent, public uart::UARTDevice {
|
||||
public:
|
||||
|
|
|
@ -4,7 +4,7 @@ namespace esphome {
|
|||
namespace lora {
|
||||
static const char *const TAG_SWITCH = "lora.switch";
|
||||
|
||||
void LoraSwitch::write_state(bool value) { this->parent_->digital_write(this->pin_, value != this->inverted_); }
|
||||
void LoraSwitch::write_state(bool state) { this->parent_->digital_write(this->pin_, state != this->inverted_); }
|
||||
void LoraSwitch::dump_config() { LOG_SWITCH(TAG_SWITCH, "Lora Switch", this); }
|
||||
} // namespace lora
|
||||
} // namespace esphome
|
||||
|
|
Loading…
Reference in a new issue