From 64eb35a918fe7a04021ad3bb8d87149456217e11 Mon Sep 17 00:00:00 2001 From: Timm Bogner <64260873+timmbogner@users.noreply.github.com> Date: Thu, 7 Jul 2022 21:15:50 -0500 Subject: [PATCH] fixed macro names --- FDRS_Gateway/fdrs_functions.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/FDRS_Gateway/fdrs_functions.h b/FDRS_Gateway/fdrs_functions.h index 1ff45a4..e4575df 100644 --- a/FDRS_Gateway/fdrs_functions.h +++ b/FDRS_Gateway/fdrs_functions.h @@ -625,10 +625,10 @@ void begin_espnow() { void begin_lora(){ #ifdef USE_LORA DBG("Initializing LoRa!"); - #ifdef ESP32 - SPI.begin(SCK, MISO, MOSI); - #endif - LoRa.setPins(SS, RST, DIO0); +#ifdef ESP32 + SPI.begin(SPI_SCK, SPI_MISO, SPI_MOSI); +#endif + LoRa.setPins(LORA_SS, LORA_RST, LORA_DIO0); if (!LoRa.begin(FDRS_BAND)) { DBG(" Initialization failed!"); while (1);