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:
Andreas Sandberg 2020-07-09 22:04:49 +01:00 committed by Carles Cufí
commit 2ebd80cd0e

View file

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