forked from auracaster/bumble_mirror
Merge pull request #754 from zxzxwu/big
Fix wrong BIG parameters and flows
This commit is contained in:
@@ -1166,14 +1166,11 @@ class BigSync(utils.EventEmitter):
|
|||||||
logger.error('BIG Sync %d is not active.', self.big_handle)
|
logger.error('BIG Sync %d is not active.', self.big_handle)
|
||||||
return
|
return
|
||||||
|
|
||||||
with closing(utils.EventWatcher()) as watcher:
|
await self.device.send_command(
|
||||||
terminated = asyncio.Event()
|
hci.HCI_LE_BIG_Terminate_Sync_Command(big_handle=self.big_handle),
|
||||||
watcher.once(self, BigSync.Event.TERMINATION, lambda _: terminated.set())
|
check_result=True,
|
||||||
await self.device.send_command(
|
)
|
||||||
hci.HCI_LE_BIG_Terminate_Sync_Command(big_handle=self.big_handle),
|
self.state = BigSync.State.TERMINATED
|
||||||
check_result=True,
|
|
||||||
)
|
|
||||||
await terminated.wait()
|
|
||||||
|
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -5257,7 +5257,7 @@ class HCI_LE_BIG_Terminate_Sync_Command(HCI_Command):
|
|||||||
|
|
||||||
return_parameters_fields = [
|
return_parameters_fields = [
|
||||||
('status', STATUS_SPEC),
|
('status', STATUS_SPEC),
|
||||||
('big_handle', 2),
|
('big_handle', 1),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user