bluetooth: hci: spi: handle interrupt return code
Handle the GPIO module failing to configure the interrupt line. Fixes #65583 Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
parent
8b95376625
commit
e1cd9f335d
1 changed files with 4 additions and 1 deletions
|
|
@ -493,7 +493,10 @@ static int bt_spi_open(void)
|
|||
}
|
||||
|
||||
/* Enable the interrupt line */
|
||||
gpio_pin_interrupt_configure_dt(&irq_gpio, GPIO_INT_EDGE_TO_ACTIVE);
|
||||
err = gpio_pin_interrupt_configure_dt(&irq_gpio, GPIO_INT_EDGE_TO_ACTIVE);
|
||||
if (err) {
|
||||
return err;
|
||||
}
|
||||
|
||||
/* Take BLE out of reset */
|
||||
k_sleep(K_MSEC(DT_INST_PROP_OR(0, reset_assert_duration_ms, 0)));
|
||||
|
|
|
|||
Loading…
Reference in a new issue