We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5af8ccb commit d92d07dCopy full SHA for d92d07d
lib/pbio/drv/bluetooth/bluetooth_btstack.c
@@ -815,9 +815,10 @@ pbio_error_t pbdrv_bluetooth_peripheral_write_characteristic_func(pbio_os_state_
815
816
pbio_error_t pbdrv_bluetooth_peripheral_disconnect_func(pbio_os_state_t *state, void *context) {
817
818
+ pbdrv_bluetooth_peripheral_t *peri = &peripheral_singleton;
819
+
820
PBIO_OS_ASYNC_BEGIN(state);
821
- pbdrv_bluetooth_peripheral_t *peri = &peripheral_singleton;
822
if (peri->con_handle != HCI_CON_HANDLE_INVALID) {
823
gap_disconnect(peri->con_handle);
824
}
0 commit comments