diff --git a/src/Module.h b/src/Module.h index 7091879e..9cb55db9 100644 --- a/src/Module.h +++ b/src/Module.h @@ -7,6 +7,10 @@ #include #endif +#if defined(STM32WLxx) + #include +#endif + /*! * Value to use as the last element in a mode table to indicate the * end of the table. diff --git a/src/modules/SX126x/STM32WLx.cpp b/src/modules/SX126x/STM32WLx.cpp index 744f88c3..5a88d8c1 100644 --- a/src/modules/SX126x/STM32WLx.cpp +++ b/src/modules/SX126x/STM32WLx.cpp @@ -9,8 +9,6 @@ This file is licensed under the MIT License: https://opensource.org/licenses/MIT #include "STM32WLx.h" #if !defined(RADIOLIB_EXCLUDE_STM32WLX) -#include - STM32WLx::STM32WLx(STM32WLx_Module* mod) : SX1262(mod) { } diff --git a/src/modules/SX126x/STM32WLx_Module.cpp b/src/modules/SX126x/STM32WLx_Module.cpp index c824200a..0d94f422 100644 --- a/src/modules/SX126x/STM32WLx_Module.cpp +++ b/src/modules/SX126x/STM32WLx_Module.cpp @@ -9,8 +9,6 @@ This file is licensed under the MIT License: https://opensource.org/licenses/MIT #if !defined(RADIOLIB_EXCLUDE_STM32WLX) -#include - // This defines some dummy pin numbers (starting at NUM_DIGITAL_PINS to // guarantee these are not valid regular pin numbers) that can be passed // to the parent Module class, to be stored here and then passed back to