rx path fixes, dc.restart wired in to lr chips,

TX timeout magic number is gone
This commit is contained in:
liquidraver
2026-08-14 13:27:54 +02:00
parent c45e7ae774
commit 4473b261ee
11 changed files with 426 additions and 33 deletions
+14
View File
@@ -762,9 +762,23 @@ public:
void clearStats() override {
lora_radio.resetStats();
lora_radio.resetDutyCycleTimeoutRestarts();
companion_mesh.resetStats();
}
/* Duty-cycle false-preamble re-arm count. Without these the
* CommonCLICallbacks default answers 0 forever, so `get dc.restarts`
* read clean on every companion regardless of what the radio was doing
* — and the companion is the role the duty cycle actually runs in.
* Mirrors RepeaterMesh::getDutyCycleTimeoutRestarts(). */
uint32_t getDutyCycleTimeoutRestarts() const override {
return lora_radio.getDutyCycleTimeoutRestarts();
}
void resetDutyCycleTimeoutRestarts() override {
lora_radio.resetDutyCycleTimeoutRestarts();
}
/* Temp radio params — deferred; stub for now. */
void applyTempRadioParams(float freq, float bw, uint8_t sf, uint8_t cr,
int timeout_mins) override {