mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2024-07-02 14:34:13 +02:00
Added max power level differentiation for SX1262
This commit is contained in:
parent
184d228991
commit
fe50c2cac9
@ -635,7 +635,11 @@ void serialCallback(uint8_t sbyte) {
|
|||||||
kiss_indicate_txpower();
|
kiss_indicate_txpower();
|
||||||
} else {
|
} else {
|
||||||
int txp = sbyte;
|
int txp = sbyte;
|
||||||
|
#if MODEM == SX1262
|
||||||
if (txp > 22) txp = 22;
|
if (txp > 22) txp = 22;
|
||||||
|
#else
|
||||||
|
if (txp > 17) txp = 17;
|
||||||
|
#endif
|
||||||
|
|
||||||
lora_txp = txp;
|
lora_txp = txp;
|
||||||
if (op_mode == MODE_HOST) setTXPower();
|
if (op_mode == MODE_HOST) setTXPower();
|
||||||
|
Loading…
Reference in New Issue
Block a user