Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
barbibulle committed Dec 22, 2023
1 parent 47fe93a commit 2b4c2a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions apps/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -1110,9 +1110,11 @@ def on_connection(self, connection):

# Stop being discoverable and connectable
if self.classic:

async def stop_being_discoverable_connectable():
await self.device.set_discoverable(False)
await self.device.set_connectable(False)

AsyncRunner.spawn(stop_being_discoverable_connectable())

# Request a new data length if needed
Expand Down
5 changes: 1 addition & 4 deletions bumble/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,7 @@ async def reset(self, driver_factory=drivers.get_driver_for_host):
f'hc_total_num_le_acl_data_packets={hc_total_num_le_acl_data_packets}'
)

if (
hc_le_acl_data_packet_length == 0
or hc_total_num_le_acl_data_packets == 0
):
if hc_le_acl_data_packet_length == 0 or hc_total_num_le_acl_data_packets == 0:
# LE and Classic share the same queue
self.le_acl_packet_queue = self.acl_packet_queue
else:
Expand Down

0 comments on commit 2b4c2a2

Please sign in to comment.