Added ability to specify per-board transceiver OCP limit

This commit is contained in:
Mark Qvist 2024-12-10 15:35:29 +01:00
parent d012c37146
commit d88f231332
2 changed files with 4 additions and 1 deletions

View file

@ -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];