Implement token bucket duty cycle enforcement

This commit is contained in:
ViezeVingertjes 2026-01-04 21:33:46 +01:00
parent 90d1e87ba1
commit eb4fa032ff
7 changed files with 68 additions and 13 deletions

View file

@ -732,7 +732,7 @@ MyMesh::MyMesh(mesh::Radio &radio, mesh::RNG &rng, mesh::RTCClock &rtc, SimpleMe
// defaults
memset(&_prefs, 0, sizeof(_prefs));
_prefs.airtime_factor = 1.0; // one half
_prefs.airtime_factor = 1.0;
strcpy(_prefs.node_name, "NONAME");
_prefs.freq = LORA_FREQ;
_prefs.sf = LORA_SF;