ifndef condition for time_avoid_duplicate (#818)
Allow time_avoid_duplicate to be configured by build_flags.
This commit is contained in:
1 parent
8b34fbb904
commit
7e7b9a6f29
1 file changed
+2
@@ -369,7 +369,9 @@ uint8_t wifiProtocol = 0; // default mode, automatic selection
|
|||||||
|
|
||||||
#if defined(ZgatewayRF) || defined(ZgatewayIR) || defined(ZgatewaySRFB) || defined(ZgatewayWeatherStation)
|
#if defined(ZgatewayRF) || defined(ZgatewayIR) || defined(ZgatewaySRFB) || defined(ZgatewayWeatherStation)
|
||||||
// variable to avoid duplicates
|
// variable to avoid 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
|
# 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
|
#endif
|
||||||
|
|
||||||
#define TimeBetweenReadingSYS 120 // time between (s) system readings (like memory)
|
#define TimeBetweenReadingSYS 120 // time between (s) system readings (like memory)
|
||||||
|
|||||||
Reference in new issue
Block a user