Skip to content

Commit

Permalink
Merge pull request #633 from markusjellitsch/fix/legacy-adv-params
Browse files Browse the repository at this point in the history
fix advertising parameter usage for legacy advertising
  • Loading branch information
barbibulle authored Feb 3, 2025
2 parents 0767f2d + 9b485fd commit 7c019b5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bumble/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,12 @@ async def start(self) -> None:
# Set the advertising parameters
await self.device.send_command(
hci.HCI_LE_Set_Advertising_Parameters_Command(
advertising_interval_min=self.device.advertising_interval_min,
advertising_interval_max=self.device.advertising_interval_max,
advertising_interval_min=int(
self.device.advertising_interval_min / 0.625
),
advertising_interval_max=int(
self.device.advertising_interval_max / 0.625
),
advertising_type=int(self.advertising_type),
own_address_type=self.own_address_type,
peer_address_type=self.peer_address.address_type,
Expand Down

0 comments on commit 7c019b5

Please sign in to comment.