Added max power level differentiation for SX1262

This commit is contained in:
Mark Qvist 2024-02-13 14:18:41 +01:00
parent 184d228991
commit fe50c2cac9

View File

@ -635,7 +635,11 @@ void serialCallback(uint8_t sbyte) {
kiss_indicate_txpower();
} else {
int txp = sbyte;
if (txp > 22) txp = 22;
#if MODEM == SX1262
if (txp > 22) txp = 22;
#else
if (txp > 17) txp = 17;
#endif
lora_txp = txp;
if (op_mode == MODE_HOST) setTXPower();