Fix LR2021 TempRadio with incompatible extra-SF detectors
Temporarily disable incompatible cached side detectors while applying a temporary primary tuple, preserving their saved configuration for normal restoration. Use primary-only CAD while those detectors are suspended. Keep compatible temporary detectors and real hardware errors intact. Report pending TempRadio starts instead of off, preserve live-tuple status during replacements and future schedules, and include the two-second delay in the accepted reply. Share primary validation to retain STM32 Mini flash capacity without dropping features. Validated production CLI status, scheduler and persistence cases; LR2021 detector suspension, restoration, CAD and hardware-error paths; reply handoff, room/sensor recovery, Morse and OTA automation regressions. W12 repeater, room-server and sensor builds pass. Canonical STM32 Mini Repeater passes flash and runtime RAM admission with 436 bytes of flash remaining. Physical W12 RF testing remains unverified.
This commit is contained in:
1 parent
6ad3e349ac
commit
a87b2a33a3
12 files changed
+244
-12
No files matched your search
@@ -4686,6 +4686,14 @@ bool MyMesh::isTempRadioActive() const {
|
||||
return temp_radio_applied;
|
||||
}
|
||||
|
||||
bool MyMesh::isTempRadioPending() const {
|
||||
if (temp_radio_applied) return false;
|
||||
for (const auto& setting : scheduled_radio_settings) {
|
||||
if (setting.active && setting.temporary && !setting.started) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
int MyMesh::findFreeScheduledRadioSlot() const {
|
||||
for (int i = 0; i < MAX_SCHEDULED_RADIO_SETTINGS; i++) {
|
||||
if (!scheduled_radio_settings[i].active) {
|
||||
|
||||
@@ -1058,6 +1058,7 @@ class MyMesh : public mesh::Mesh, public CommonCLICallbacks
|
||||
void formatScheduledRadioSetting(char* reply, int setting_idx, int display_idx) const;
|
||||
|
||||
protected:
|
||||
bool isTempRadioPending() const override;
|
||||
uint32_t getTempRadioDurationSeconds() const override { return radio_timing.tempDuration(); }
|
||||
void appendTempRadioTimingNote(char* reply, size_t size, uint32_t seconds) const override {
|
||||
mesh::RepeaterRadioTiming::appendTempWatchdogNote(reply, size, seconds);
|
||||
|
||||
@@ -581,6 +581,7 @@ public:
|
||||
// CommonCLICallbacks
|
||||
mesh::Radio* getProfileRadio() override { return _radio; }
|
||||
void applyTempRadioParams(float freq, float bw, uint8_t sf, uint8_t cr, int timeout_mins, uint16_t preamble = 0) override;
|
||||
bool isTempRadioPending() const override { return set_radio_at != 0 && !temp_radio_applied; }
|
||||
bool scheduleNormalRadio() override;
|
||||
#if defined(ESP32_PLATFORM) || defined(USER_GPIO_CONTROL)
|
||||
uint32_t getUserGpioRequestSource() const override {
|
||||
|
||||
@@ -143,6 +143,7 @@ public:
|
||||
void clearStats() override { }
|
||||
mesh::Radio* getProfileRadio() override { return _radio; }
|
||||
void applyTempRadioParams(float freq, float bw, uint8_t sf, uint8_t cr, int timeout_mins, uint16_t preamble = 0) override;
|
||||
bool isTempRadioPending() const override { return set_radio_at != 0 && !temp_radio_applied; }
|
||||
bool scheduleNormalRadio() override;
|
||||
void startRegionsLoad() override;
|
||||
bool saveRegions() override;
|
||||
|
||||
Reference in new issue
Block a user