From e9c4cbdfe9bdba0d9c039e19d0bd213e9607be12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Koek?= Date: Tue, 26 Mar 2024 11:58:36 +0000 Subject: [PATCH] More suggestions --- esphome/components/lora/lora.h | 1 - esphome/components/lora/switch/switch_lora.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/esphome/components/lora/lora.h b/esphome/components/lora/lora.h index 3da1b79e59..29daac6cb6 100644 --- a/esphome/components/lora/lora.h +++ b/esphome/components/lora/lora.h @@ -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: diff --git a/esphome/components/lora/switch/switch_lora.cpp b/esphome/components/lora/switch/switch_lora.cpp index 617b87148a..ba026799d1 100644 --- a/esphome/components/lora/switch/switch_lora.cpp +++ b/esphome/components/lora/switch/switch_lora.cpp @@ -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