Skip to content

Commit 7e7b9a6

Browse files
authored
ifndef condition for time_avoid_duplicate (#818)
Allow time_avoid_duplicate to be configured by build_flags.
1 parent 8b34fbb commit 7e7b9a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main/User_config.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,9 @@ uint8_t wifiProtocol = 0; // default mode, automatic selection
369369

370370
#if defined(ZgatewayRF) || defined(ZgatewayIR) || defined(ZgatewaySRFB) || defined(ZgatewayWeatherStation)
371371
// variable to avoid duplicates
372-
# 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
372+
# ifndef time_avoid_duplicate
373+
# 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
374+
# endif
373375
#endif
374376

375377
#define TimeBetweenReadingSYS 120 // time between (s) system readings (like memory)

0 commit comments

Comments
 (0)