diff --git a/esphome/components/sx127x/sx127x.h b/esphome/components/sx127x/sx127x.h index 4e338d3ce1..7f4be737a6 100644 --- a/esphome/components/sx127x/sx127x.h +++ b/esphome/components/sx127x/sx127x.h @@ -204,6 +204,12 @@ enum SX127xPaRamp : uint8_t { PA_RAMP_3400 = 0x00, }; +enum SX127xPaConfig : uint8_t { + PA_PIN_RFO = 0x00, + PA_PIN_BOOST = 0x80, + PA_MAX_POWER = 0x70, +}; + struct SX127xStore { static void gpio_intr(SX127xStore *arg); volatile uint32_t dio0_micros{0}; @@ -213,8 +219,6 @@ struct SX127xStore { ISRInternalGPIOPin dio2_pin; }; -enum SX127xPaConfig : uint8_t { PA_PIN_RFO = 0x00, PA_PIN_BOOST = 0x80, PA_MAX_POWER = 0x70 }; - class SX127x : public Component, public spi::SPIDevice {