diff --git a/src/configuration.h b/src/configuration.h index 09bf7fd3..69a62e9c 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -156,9 +156,9 @@ along with this program. If not, see . #define BUTTON_PIN_ALT 13 // Alternate GPIO for an external button if needed #ifndef USE_JTAG -#define RESET_GPIO 14 +#define RF95_RESET 14 #endif -#define RF95_IRQ_GPIO 26 +#define RF95_IRQ 26 #define DIO1_GPIO 33 // Note: not really used on this board #define DIO2_GPIO 32 // Note: not really used on this board diff --git a/src/main.cpp b/src/main.cpp index 9c3bc63f..f4dd14fb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -310,7 +310,7 @@ void setup() RadioInterface *rIf = #if defined(RF95_IRQ_GPIO) // new CustomRF95(); old Radiohead based driver - new RF95Interface(NSS_GPIO, RF95_IRQ_GPIO, RESET_GPIO, SPI); + new RF95Interface(RF95_NSS, RF95_IRQ, RF95_RESET, SPI); #elif defined(SX1262_CS) new SX1262Interface(SX1262_CS, SX1262_DIO1, SX1262_RESET, SX1262_BUSY, SPI); #else