Skip to content

Commit

Permalink
fix advertising parameters for legacy advertising
Browse files Browse the repository at this point in the history
  • Loading branch information
markusjellitsch authored Jan 23, 2025
1 parent af466c2 commit 9023407
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bumble/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ 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 Expand Up @@ -2583,8 +2583,8 @@ async def start_advertising(
auto_restart: bool = False,
advertising_data: Optional[bytes] = None,
scan_response_data: Optional[bytes] = None,
advertising_interval_min: Optional[int] = None,
advertising_interval_max: Optional[int] = None,
advertising_interval_min: Optional[float] = None,
advertising_interval_max: Optional[float] = None,
) -> None:
"""Start legacy advertising.
Expand Down

0 comments on commit 9023407

Please sign in to comment.