diff --git a/variants/nicerf_lr2021/EspIdfHal.h b/src/helpers/radiolib/EspIdfHal.h similarity index 100% rename from variants/nicerf_lr2021/EspIdfHal.h rename to src/helpers/radiolib/EspIdfHal.h diff --git a/variants/nicerf_lr2021/target.cpp b/variants/nicerf_lr2021/target.cpp index 8737d6a0..bae0ff40 100644 --- a/variants/nicerf_lr2021/target.cpp +++ b/variants/nicerf_lr2021/target.cpp @@ -8,7 +8,7 @@ NiceRFLR2021Board board; // your board, define USE_ESPIDF_HAL in platformio.ini to use the ESP-IDF SPI // HAL workaround (see EspIdfHal.h for details). #ifdef USE_ESPIDF_HAL -#include "EspIdfHal.h" +#include static EspIdfHal hal(P_LORA_SCLK, P_LORA_MISO, P_LORA_MOSI); RADIO_CLASS radio(new Module(&hal, P_LORA_NSS, P_LORA_DIO_1, P_LORA_RESET, P_LORA_BUSY));