Skip to content

Commit 42e347e

Browse files
committed
drivers/sx126x: configure tx clamp for sx1262
1 parent ef76a04 commit 42e347e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/sx126x/sx126x.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,13 @@ int sx126x_init(sx126x_t *dev)
359359
return -ENODEV;
360360
}
361361

362+
if (sx126x_is_sx1262(dev)) {
363+
/* Workaround for SX1262, during the chip initialization.
364+
Calling this function optimizes the PA clamping threshold.
365+
The call must be done after a Power On Reset or a wake-up from cold start */
366+
sx126x_cfg_tx_clamp(dev);
367+
}
368+
362369
/* Configure the power regulator mode */
363370
sx126x_set_reg_mode(dev, dev->params->regulator);
364371

0 commit comments

Comments
 (0)