mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2025-06-06 22:09:00 -04:00
Fix issue with SX1280 TX power not being set properly
This commit is contained in:
parent
02c691481b
commit
003aab4072
1 changed files with 3 additions and 3 deletions
|
@ -2295,7 +2295,7 @@ void sx128x::setTxPower(int level, int outputPin) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
tx_buf[0] = reg_value;
|
tx_buf[0] = reg_value + 18;
|
||||||
tx_buf[1] = 0xE0; // ramping time - 20 microseconds
|
tx_buf[1] = 0xE0; // ramping time - 20 microseconds
|
||||||
|
|
||||||
executeOpcode(OP_TX_PARAMS_8X, tx_buf, 2);
|
executeOpcode(OP_TX_PARAMS_8X, tx_buf, 2);
|
||||||
|
@ -2381,7 +2381,7 @@ void sx128x::setTxPower(int level, int outputPin) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
tx_buf[0] = level;
|
tx_buf[0] = reg_value + 18;
|
||||||
tx_buf[1] = 0xE0; // ramping time - 20 microseconds
|
tx_buf[1] = 0xE0; // ramping time - 20 microseconds
|
||||||
#else
|
#else
|
||||||
// For SX1280 boards with no specific PA requirements
|
// For SX1280 boards with no specific PA requirements
|
||||||
|
@ -2393,7 +2393,7 @@ void sx128x::setTxPower(int level, int outputPin) {
|
||||||
|
|
||||||
_txp = level;
|
_txp = level;
|
||||||
|
|
||||||
tx_buf[0] = level;
|
tx_buf[0] = level + 18;
|
||||||
tx_buf[1] = 0xE0; // ramping time - 20 microseconds
|
tx_buf[1] = 0xE0; // ramping time - 20 microseconds
|
||||||
#endif
|
#endif
|
||||||
executeOpcode(OP_TX_PARAMS_8X, tx_buf, 2);
|
executeOpcode(OP_TX_PARAMS_8X, tx_buf, 2);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue