mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-09-24 01:24:23 +00:00
properly reset CAD offset when needed
This commit is contained in:
@@ -1199,7 +1199,10 @@ void RepeaterMesh::applyTempRadioParams(float freq, float bw, uint8_t sf, uint8_
|
||||
void RepeaterMesh::freezeRadioParams(float freq, float bw, uint8_t sf, uint8_t cr) {
|
||||
auto& radio = getRadioDriver(_radio);
|
||||
if (!radio.hasRadioOverride()) {
|
||||
radio.setRadioOverride(freq, bw, sf, cr);
|
||||
/* Holds the radio on the preset it is ALREADY running while _prefs
|
||||
* move ahead of it, so the learned CAD offset still applies — see
|
||||
* setRadioOverride(). */
|
||||
radio.setRadioOverride(freq, bw, sf, cr, /*visiting_new_preset=*/false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user