Skip to content

Commit 62b50b3

Browse files
committed
adjust
1 parent 2300e8d commit 62b50b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

adafruit_ble/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,12 @@ def start_advertising(
183183
scan_response.tx_power = self.tx_power
184184
if scan_response:
185185
scan_response_bytes = bytes(scan_response)
186-
timeout = 0 if timeout is None else timeout
187186
self._adapter.start_advertising(
188187
advertisement_bytes,
189188
scan_response=scan_response_bytes,
190189
connectable=advertisement.connectable,
191190
interval=interval,
192-
timeout=timeout,
191+
timeout=0 if timeout is None else timeout,
193192
)
194193

195194
def stop_advertising(self):

0 commit comments

Comments
 (0)