diff --git a/src/Module.cpp b/src/Module.cpp index 68fbcf0c..399dec46 100644 --- a/src/Module.cpp +++ b/src/Module.cpp @@ -44,6 +44,10 @@ void Module::init() { this->hal->init(); this->hal->pinMode(csPin, this->hal->GpioModeOutput); this->hal->digitalWrite(csPin, this->hal->GpioLevelHigh); + RADIOLIB_DEBUG_PRINTLN("\nRadioLib Debug Info"); + RADIOLIB_DEBUG_PRINTLN("Version: %d.%d.%d.%d", RADIOLIB_VERSION_MAJOR, RADIOLIB_VERSION_MINOR, RADIOLIB_VERSION_PATCH, RADIOLIB_VERSION_EXTRA); + RADIOLIB_DEBUG_PRINTLN("Platform: " RADIOLIB_PLATFORM); + RADIOLIB_DEBUG_PRINTLN("Compiled: " __DATE__ " " __TIME__ "\n"); } void Module::term() { diff --git a/src/RadioLib.h b/src/RadioLib.h index e4ea62ad..e3b9db4f 100644 --- a/src/RadioLib.h +++ b/src/RadioLib.h @@ -51,18 +51,6 @@ #warning "God mode active, I hope it was intentional. Buckle up, lads." #endif -// print debug info -#if defined(RADIOLIB_DEBUG) - #define RADIOLIB_VALUE_TO_STRING(x) #x - #define RADIOLIB_VALUE(x) RADIOLIB_VALUE_TO_STRING(x) - #define RADIOLIB_VAR_NAME_VALUE(var) #var "=" RADIOLIB_VALUE(var) - #pragma message(RADIOLIB_VAR_NAME_VALUE(RADIOLIB_PLATFORM)) - #pragma message(RADIOLIB_VAR_NAME_VALUE(RADIOLIB_VERSION_MAJOR)) - #pragma message(RADIOLIB_VAR_NAME_VALUE(RADIOLIB_VERSION_MINOR)) - #pragma message(RADIOLIB_VAR_NAME_VALUE(RADIOLIB_VERSION_PATCH)) - #pragma message(RADIOLIB_VAR_NAME_VALUE(RADIOLIB_VERSION_EXTRA)) -#endif - // check unknown/unsupported platform #if defined(RADIOLIB_UNKNOWN_PLATFORM) #warning "RadioLib might not be compatible with this Arduino board - check supported platforms at https://github.com/jgromes/RadioLib!"