simple_repeater: radio silence watchdog -- re-arm RX, then reboot a deaf receiver (#6)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
10f0349207
commit
278c1b8c8a
8 files changed
+440
No files matched your search
@@ -1404,6 +1404,11 @@ MyMesh::MyMesh(mesh::MainBoard &board, mesh::Radio &radio, mesh::MillisecondCloc
|
||||
#define FAIRNESS_ENABLED_DEFAULT 1
|
||||
#endif
|
||||
_prefs.fairness_enabled = FAIRNESS_ENABLED_DEFAULT;
|
||||
// CUSTOM (TeTeHacko): radio silence watchdog, minutes; 0 = off (see main.cpp).
|
||||
#ifndef RADIO_SILENCE_MIN_DEFAULT
|
||||
#define RADIO_SILENCE_MIN_DEFAULT 0
|
||||
#endif
|
||||
_prefs.radio_silence_min = RADIO_SILENCE_MIN_DEFAULT;
|
||||
filter_hash_dropped = 0;
|
||||
filter_hash_passed = 0;
|
||||
_prefs.interference_threshold = 0; // disabled
|
||||
@@ -1869,6 +1874,10 @@ void MyMesh::handleCommand(uint32_t sender_timestamp, char *command, char *reply
|
||||
// verdict, which `set tx` swallows. See main.cpp.
|
||||
extern bool txPwrHandleCommand(const char* command, char* reply);
|
||||
if (txPwrHandleCommand(command, reply)) return;
|
||||
// CUSTOM (TeTeHacko): `get/set radio.silence`, `get radio.reboots` -- the
|
||||
// deaf-receiver watchdog, see main.cpp. Ahead of CommonCLI's get/set.
|
||||
extern bool radioSilenceHandleCommand(const char* command, char* reply);
|
||||
if (radioSilenceHandleCommand(command, reply)) return;
|
||||
#ifdef RADIO_DIAG
|
||||
// CUSTOM (TeTeHacko): `radiostat` / `radiokick` -- see main.cpp.
|
||||
extern bool radioDiagHandleCommand(const char* command, char* reply);
|
||||
|
||||
Reference in new issue
Block a user