Skip to content

Commit 0f0e904

Browse files
committed
drv/bluetooth/cc2640: fix reset
The Bluetooth chip was not being reset due to missing breaks in a switch statement.
1 parent e3374b0 commit 0f0e904

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/pbio/drv/bluetooth/bluetooth_stm32_cc2640.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,13 @@ static void bluetooth_reset(reset_state_t reset) {
203203
switch (reset) {
204204
case RESET_STATE_OUT_HIGH:
205205
pbdrv_gpio_out_high(&pdata->reset_gpio);
206+
break;
206207
case RESET_STATE_OUT_LOW:
207208
pbdrv_gpio_out_low(&pdata->reset_gpio);
209+
break;
208210
case RESET_STATE_INPUT:
209211
pbdrv_gpio_input(&pdata->reset_gpio);
212+
break;
210213
}
211214
}
212215

0 commit comments

Comments
 (0)