diff --git a/extras/ModuleTemplate.h b/extras/ModuleTemplate.h index dcb7b0f9..4d957cb0 100644 --- a/extras/ModuleTemplate.h +++ b/extras/ModuleTemplate.h @@ -12,14 +12,16 @@ If at any point you are unsure about the required style, please refer to the rest of the modules. */ +#if !defined(_RADIOLIB__H) && !defined(RADIOLIB_EXCLUDE_) #ifndef _RADIOLIB__H #define _RADIOLIB__H /* - Header file for each module MUST include Module.h. + Header file for each module MUST include Module.h and TypeDef.h in the src folder. The header file MAY include additional header files. */ -#include "Module.h" +#include "../../Module.h" +#include "../../TypeDef.h" /* Only use the following include if the module implements methods for OSI transport layer control. @@ -29,7 +31,7 @@ You also MUST provide crystal oscillator frequency and frequency configuration divisor step resolution to the TransportLayer constructor. */ -//#include "../protocols/TransportLayer.h" +//#include "../../protocols/PhysicalLayer/TransportLayer.h" /* Only use the following include if the module implements methods for OSI physical layer control. @@ -37,7 +39,7 @@ In this case, your class MUST implement all virtual methods of PhysicalLayer class. */ -//#include "../protocols/PhysicalLayer.h" +//#include "../../protocols/PhysicalLayer/PhysicalLayer.h" /* Register map @@ -74,7 +76,7 @@ class { The class MAY implement additional overloaded constructors. */ // constructor - (Module* module); + (Module* mod); /* The class MUST implement at least one basic method called "begin". @@ -105,3 +107,5 @@ class { }; #endif + +#endif