Fix zero CR and add unit tests for applyModemConfig coding rate behavior (#10070)

* Fix zero CR and add unit tests for applyModemConfig coding rate behavior

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: initialize region configuration in setUp for RadioInterface tests

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Ben Meadors
2026-04-04 08:27:39 +11:00
committed by GitHub
co-authored by GitHub Copilot
parent 2e6519bb98
commit 222d3e6b62
2 changed files with 96 additions and 1 deletions
+1 -1
View File
@@ -961,7 +961,7 @@ void RadioInterface::applyModemConfig()
cr = loraConfig.coding_rate;
LOG_INFO("Using custom Coding Rate %u", cr);
} else {
cr = loraConfig.coding_rate;
cr = newcr;
}
} else { // if not using preset, then just use the custom settings