More suggestions

This commit is contained in:
Daniël Koek 2024-03-26 11:58:36 +00:00
parent 80952aad84
commit e9c4cbdfe9
2 changed files with 1 additions and 2 deletions

View file

@ -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:

View file

@ -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