Skip to content

Commit 04efe51

Browse files
committed
Explain in broadcast docstring that broadcast time is N*broadcast_time if split up
1 parent 450af18 commit 04efe51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_ble_broadcastnet.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535

3636
def broadcast(measurement: 'AdafruitSensorMeasurement', *, broadcast_time: float = 0.1, extended: bool = False) -> None:
3737
"""Broadcasts the given measurement for the given broadcast time. If extended is False and the
38-
measurement would be too long, it will be split into multiple measurements for transmission.
38+
measurement would be too long, it will be split into multiple measurements for transmission,
39+
each with the given broadcast time.
3940
"""
4041
global _sequence_number # pylint: disable=global-statement,invalid-name
4142
for submeasurement in measurement.split(252 if extended else 31):

0 commit comments

Comments
 (0)