mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-09-09 14:25:37 +00:00
rx path fixes, dc.restart wired in to lr chips,
TX timeout magic number is gone
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user