From 1bceb90d42dbc5e326783a0ae495fd4388536565 Mon Sep 17 00:00:00 2001 From: jgromes Date: Tue, 2 Mar 2021 11:19:04 +0100 Subject: [PATCH] Fixed conflicting macro name --- src/BuildOpt.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BuildOpt.h b/src/BuildOpt.h index 48a7e285..319b575a 100644 --- a/src/BuildOpt.h +++ b/src/BuildOpt.h @@ -1,4 +1,4 @@ -#ifndef _RADIOLIB_BUILD_OPTIONS_H +#if !defined(_RADIOLIB_BUILD_OPTIONS_H) #define _RADIOLIB_BUILD_OPTIONS_H #if ARDUINO >= 100 @@ -391,7 +391,7 @@ * possibly leading to bricked module and/or program crashing. * Note: Enabled by default. */ -#define RADIOLIB_CHECK_RANGE +#define RADIOLIB_CHECK_PARAMS /* * Uncomment to enable god mode - all methods and member variables in all classes will be made public, thus making them accessible from Arduino code. @@ -424,7 +424,7 @@ /*! \brief Macro to check variable is within constraints - this is commonly used to check parameter ranges. Requires RADIOLIB_CHECK_RANGE to be enabled */ -#if defined(RADIOLIB_CHECK_RANGE) +#if defined(RADIOLIB_CHECK_PARAMS) #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) { if(!(((VAR) >= (MIN)) && ((VAR) <= (MAX)))) { return(ERR); } } #else #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) {}