Add normalradio to common CLI

This commit is contained in:
mikecarper
2026-08-19 12:44:49 -07:00
parent 0f64b293f8
commit fec74517ee
12 changed files with 67 additions and 8 deletions
+10
View File
@@ -1062,6 +1062,16 @@ void SensorMesh::applyTempRadioParams(float freq, float bw, uint8_t sf, uint8_t
revert_radio_at = futureMillis(2000 + timeout_mins*60*1000); // schedule when to revert radio params
}
bool SensorMesh::scheduleNormalRadio() {
// Keep the reply on the current tuple, then let the existing safe restore
// path wait for an idle outbound queue before touching the radio.
set_radio_at = 0;
revert_radio_at = futureMillis(1);
radio_apply_retry_at = 0;
radio_apply_failures = 0;
return true;
}
void SensorMesh::sendSelfAdvertisement(int delay_millis, bool flood) {
mesh::Packet* pkt = createSelfAdvert();
if (pkt) {