Feat: Adds flood.max.unscoped setting

Before this commit, there was no way to set a different max hop count
for unscoped messages.

Now with this change, by defaul it tracks the flood.max setting, until
a user provides a flood.max.unscoped value, which tax precidence for
packets if ROUTE_TYPE_FLOOD is true.
This commit is contained in:
Chris Barker
2026-06-01 21:30:17 +01:00
parent 4573082f90
commit a33f3011a5
4 changed files with 45 additions and 4 deletions
+3
View File
@@ -14,6 +14,8 @@
#define ADVERT_LOC_SHARE 1
#define ADVERT_LOC_PREFS 2
#define FLOOD_MAX_UNSCOPED_UNSET 0xFF
#define LOOP_DETECT_OFF 0
#define LOOP_DETECT_MINIMAL 1
#define LOOP_DETECT_MODERATE 2
@@ -40,6 +42,7 @@ struct NodePrefs { // persisted to file
uint8_t multi_acks;
float bw;
uint8_t flood_max;
uint8_t flood_max_unscoped;
uint8_t interference_threshold;
uint8_t agc_reset_interval; // secs / 4
// Bridge settings