From 7e7b9a6f2944099239b4914fa4544df24999f4cd Mon Sep 17 00:00:00 2001 From: jumika Date: Tue, 1 Dec 2020 22:53:17 +0100 Subject: [PATCH] ifndef condition for time_avoid_duplicate (#818) Allow time_avoid_duplicate to be configured by build_flags. --- main/User_config.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/User_config.h b/main/User_config.h index 47e8077..1d03963 100755 --- a/main/User_config.h +++ b/main/User_config.h @@ -369,7 +369,9 @@ uint8_t wifiProtocol = 0; // default mode, automatic selection #if defined(ZgatewayRF) || defined(ZgatewayIR) || defined(ZgatewaySRFB) || defined(ZgatewayWeatherStation) // variable to avoid duplicates -# define time_avoid_duplicate 3000 // if you want to avoid duplicate mqtt message received set this to > 0, the value is the time in milliseconds during which we don't publish duplicates +# ifndef time_avoid_duplicate +# define time_avoid_duplicate 3000 // if you want to avoid duplicate mqtt message received set this to > 0, the value is the time in milliseconds during which we don't publish duplicates +# endif #endif #define TimeBetweenReadingSYS 120 // time between (s) system readings (like memory)