simple_repeater: per-origin advert window + fairness dry-run (tth #2, #1)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5.5 committed 2026-11-02 09:40:20 +01:00
1 parent af1714db08
commit 910bee899a
7 files changed
+351 -11

No files matched your search

+4
View File
@@ -89,6 +89,8 @@ public:
// FairnessLimiter runtime tuning; 0 = use the firmware build default.
uint8_t fair_group_cap = 0, fair_sender_cap = 0, fair_advert_cap = 0;
uint16_t fair_group_refill_s = 0, fair_sender_refill_s = 0, fair_advert_refill_s = 0;
uint16_t fair_advert_hours = 0; // per-origin advert window, hours; 0 = off
uint8_t fair_dry_run = 0; // count FairnessLimiter verdicts, forward anyway
private:
class RadioPrefs : public CommonRadioPrefs {
@@ -216,6 +218,8 @@ private:
def("fair_grf", _parent->fair_group_refill_s);
def("fair_srf", _parent->fair_sender_refill_s);
def("fair_arf", _parent->fair_advert_refill_s);
def("fair_advh", _parent->fair_advert_hours);
def("fair_dry", _parent->fair_dry_run);
}
public:
RepeatPrefs(NodePrefs* parent) : _parent(parent) { }