From 7c0fc5305a5b2dcbfc74256282d17b47cb17ecfc Mon Sep 17 00:00:00 2001 From: jgromes Date: Mon, 10 Apr 2023 10:29:21 +0200 Subject: [PATCH] [STM32WL] Fixed build for Platformio (#718) --- src/Module.h | 4 ++++ src/modules/SX126x/STM32WLx.cpp | 2 -- src/modules/SX126x/STM32WLx_Module.cpp | 2 -- 3 files changed, 4 insertions(+), 4 deletions(-) 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