make default power level radio chipset specific

This commit is contained in:
geeksville
2020-09-15 17:55:33 -07:00
parent 313cee9a3f
commit 31fc8fafec
3 changed files with 10 additions and 4 deletions

View File

@@ -37,6 +37,10 @@ bool SX1262Interface::init()
bool useRegulatorLDO = false; // Seems to depend on the connection to pin 9/DCC_SW - if an inductor DCDC?
applyModemConfig();
if (power == 0)
power = 22;
if (power > 22) // This chip has lower power limits than some
power = 22;
int res = lora.begin(freq, bw, sf, cr, syncWord, power, currentLimit, preambleLength, tcxoVoltage, useRegulatorLDO);