Skip to content

Commit 2e656ff

Browse files
committed
pbio/drv/bluetooth_btstack: Don't call hci_set_chipset during init.
We call this again when we discover the local version. We shouldn't be calling this twice.
1 parent 5876561 commit 2e656ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/pbio/drv/bluetooth/bluetooth_btstack.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,8 +1121,9 @@ void pbdrv_bluetooth_init_hci(void) {
11211121
btstack_memory_init();
11221122
btstack_run_loop_init(&bluetooth_btstack_run_loop);
11231123

1124+
// Chipset is not set here. This is done dynamically when we get the
1125+
// local version information.
11241126
hci_init(pdata->transport_instance(), pdata->transport_config());
1125-
hci_set_chipset(pdata->chipset_instance());
11261127
hci_set_control(pdata->control_instance());
11271128

11281129
// REVISIT: do we need to call btstack_chipset_cc256x_set_power() or btstack_chipset_cc256x_set_power_vector()?

0 commit comments

Comments
 (0)