set hops to hop_max and set hop_max to 15 when using coverage filter

This commit is contained in:
medentem 2025-01-07 11:03:27 -06:00
parent 5ce10c0698
commit aac890d537

View File

@ -36,11 +36,10 @@ enum RxSource {
* too long.
**/
#define HOP_MAX 7
#ifdef USERPREFS_USE_COVERAGE_FILTER
bool useCoverageFilter = USERPREFS_USE_COVERAGE_FILTER;
if (useCoverageFilter)
#define HOP_MAX 15
#if defined(USERPREFS_USE_COVERAGE_FILTER) && USERPREFS_USE_COVERAGE_FILTER
#define HOP_MAX 15
#else
#define HOP_MAX 7
#endif
/// We normally just use max 3 hops for sending reliable messages