drivers: lora: sx126x: Don't initialize control pin to active
The antenna control GPIO was incorrectly initialized to active. This is unnecessary since the HAL will activate the antenna switch when the chip enters an active state. Signed-off-by: Andreas Sandberg <andreas@sandberg.pp.se>
This commit is contained in:
parent
23e4a8b64e
commit
2ebd80cd0e
1 changed files with 1 additions and 1 deletions
|
@ -430,7 +430,7 @@ static int sx126x_lora_init(struct device *dev)
|
|||
}
|
||||
|
||||
gpio_pin_configure(dev_data.antenna_enable, GPIO_ANTENNA_ENABLE_PIN,
|
||||
GPIO_OUTPUT_ACTIVE | GPIO_ANTENNA_ENABLE_FLAGS);
|
||||
GPIO_OUTPUT_INACTIVE | GPIO_ANTENNA_ENABLE_FLAGS);
|
||||
#endif
|
||||
|
||||
dev_data.spi = device_get_binding(DT_INST_BUS_LABEL(0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue