From 067519c500d4e1cb813c486fd34000bd8c83c337 Mon Sep 17 00:00:00 2001 From: Olivier Date: Thu, 7 Sep 2017 18:10:55 +0200 Subject: [PATCH] Fix sanity check option (#923) --- MyConfig.h | 3 --- MySensors.h | 7 ++++++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/MyConfig.h b/MyConfig.h index 4674dc1..bc5fe13 100644 --- a/MyConfig.h +++ b/MyConfig.h @@ -919,9 +919,6 @@ * for battery powered operation. */ //#define MY_REPEATER_FEATURE -#if defined(MY_REPEATER_FEATURE) -#define MY_TRANSPORT_SANITY_CHECK -#endif /** * @def MY_PASSIVE_NODE diff --git a/MySensors.h b/MySensors.h index 92b5469..78bc6f2 100644 --- a/MySensors.h +++ b/MySensors.h @@ -1,4 +1,4 @@ -/* +/* * The MySensors Arduino library handles the wireless radio link and protocol * between your home built sensors/actuators and HA controller of choice. * The sensors forms a self healing radio network with optional repeaters. Each @@ -236,6 +236,11 @@ MY_DEFAULT_RX_LED_PIN in your sketch instead to enable LEDs #endif #endif //DOXYGEN +// SANITY CHECK +#if defined(MY_REPEATER_FEATURE) || defined(MY_GATEWAY_FEATURE) +#define MY_TRANSPORT_SANITY_CHECK +#endif + // TRANSPORT INCLUDES #if defined(MY_RADIO_RF24) || defined(MY_RADIO_NRF5_ESB) || defined(MY_RADIO_RFM69) || defined(MY_RADIO_RFM95) || defined(MY_RS485) #include "hal/transport/MyTransportHAL.h"