Skip to content

Commit e1850c1

Browse files
committed
pbio/drv/bluetooth_btstack: Fix Bluetooth not turning off on shutdown.
This was accidentally negated in a17c1d2.
1 parent 4002d26 commit e1850c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/pbio/drv/bluetooth/bluetooth_btstack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ static pbio_error_t bluetooth_btstack_handle_power_control(pbio_os_state_t *stat
12561256

12571257
pbio_error_t pbdrv_bluetooth_controller_reset(pbio_os_state_t *state, pbio_os_timer_t *timer) {
12581258

1259-
if (pbdrv_bluetooth_hci_is_enabled()) {
1259+
if (!pbdrv_bluetooth_hci_is_enabled()) {
12601260
return PBIO_ERROR_INVALID_OP;
12611261
}
12621262

0 commit comments

Comments
 (0)