Update lora_pin.cpp

This commit is contained in:
Daniël Koek 2024-02-20 16:28:27 +00:00
parent f213e1a411
commit b5912c7d6e

View file

@ -4,11 +4,11 @@
namespace esphome { namespace esphome {
namespace lora { namespace lora {
static const char *const TAG = "lora.pin"; static const char *const TAGPin = "lora.pin";
void LoraGPIOPin::setup() { pin_mode(flags_); } void LoraGPIOPin::setup() { pin_mode(flags_); }
void LoraGPIOPin::pin_mode(gpio::Flags flags) { void LoraGPIOPin::pin_mode(gpio::Flags flags) {
if (flags != gpio::FLAG_OUTPUT) { if (flags != gpio::FLAG_OUTPUT) {
ESP_LOGD(TAG, "Output only supported"); ESP_LOGD(TAGPin, "Output only supported");
} }
} }
bool LoraGPIOPin::digital_read() { return false; } bool LoraGPIOPin::digital_read() { return false; }