From 49f71e80be170d0ff12d232a3aff065a25469d24 Mon Sep 17 00:00:00 2001 From: Jonathan Swoboda Date: Sun, 10 Nov 2024 18:48:50 -0500 Subject: [PATCH] Group enums together --- esphome/components/sx127x/sx127x.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 {