mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 09:44:12 +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_CONFIGURATION = 3,
|
||||||
MODE_3_PROGRAM = 3,
|
MODE_3_PROGRAM = 3,
|
||||||
MODE_3_SLEEP = 3,
|
MODE_3_SLEEP = 3,
|
||||||
MODE_INIT = 0xFF
|
|
||||||
};
|
};
|
||||||
class Lora : public PollingComponent, public uart::UARTDevice {
|
class Lora : public PollingComponent, public uart::UARTDevice {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -4,7 +4,7 @@ namespace esphome {
|
||||||
namespace lora {
|
namespace lora {
|
||||||
static const char *const TAG_SWITCH = "lora.switch";
|
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); }
|
void LoraSwitch::dump_config() { LOG_SWITCH(TAG_SWITCH, "Lora Switch", this); }
|
||||||
} // namespace lora
|
} // namespace lora
|
||||||
} // namespace esphome
|
} // namespace esphome
|
||||||
|
|
Loading…
Reference in a new issue