Skip to content

Commit 19cccbb

Browse files
authored
Merge pull request #21911 from fabian18/pr/sx126x_fix_dio3
drivers/sx126x: fix compilation for sx126x_dio3
2 parents 1a1e104 + 01b2c2f commit 19cccbb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/sx126x/sx126x.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,9 +394,8 @@ int sx126x_init(sx126x_t *dev)
394394
#endif
395395
#if IS_USED(MODULE_SX126X_DIO3)
396396
if (dev->params->dio3_mode == SX126X_DIO3_TCXO) {
397-
sx126x_set_dio3_as_tcxo_ctrl(dev, dev->params->u_dio3_arg.tcxo_volt,
398-
dev->params->u_dio3_arg.tcx0_timeout);
399-
397+
sx126x_set_dio3_as_tcxo_ctrl(dev, dev->params->dio3_arg.tcxo_volt,
398+
dev->params->dio3_arg.tcxo_timeout);
400399
/* Once the command SetDIO3AsTCXOCtrl(...) is sent to the device,
401400
the register controlling the internal cap on XTA will be automatically
402401
changed to 0x2F (33.4 pF) to filter any spurious injection which could occur

0 commit comments

Comments
 (0)