Skip to content

Commit

Permalink
Added max power level differentiation for SX1262
Browse files Browse the repository at this point in the history
  • Loading branch information
markqvist committed Feb 13, 2024
1 parent 184d228 commit fe50c2c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion RNode_Firmware.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit fe50c2c

Please sign in to comment.