mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-05-06 08:34:58 -04:00
Added ability to specify per-board transceiver OCP limit
This commit is contained in:
parent
d012c37146
commit
d88f231332
2 changed files with 4 additions and 1 deletions
|
@ -771,7 +771,7 @@ void sx126x::setTxPower(int level, int outputPin) {
|
|||
if (level > 22) { level = 22; }
|
||||
else if (level < -9) { level = -9; }
|
||||
|
||||
writeRegister(REG_OCP_6X, 0x38); // 160mA limit, overcurrent protection
|
||||
writeRegister(REG_OCP_6X, OCP_TUNED); // Use board-specific tuned OCP
|
||||
|
||||
uint8_t tx_buf[2];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue