Skip to content

Commit 03b776c

Browse files
committed
use float instead of int for delay
1 parent 42a046e commit 03b776c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_irremote.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,15 +366,15 @@ def transmit(
366366
data: bytearray,
367367
*,
368368
repeat: int = 0,
369-
delay: int = 0,
369+
delay: float = 0.0,
370370
nbits: Optional[int] = None,
371371
) -> None:
372372
"""Transmit the ``data`` using the ``pulseout``.
373373
374374
:param pulseio.PulseOut pulseout: PulseOut to transmit on
375375
:param bytearray data: Data to transmit
376376
:param int repeat: Number of additional retransmissions of the data, default 0
377-
:param float delay: Delay between any retransmissions, default 0
377+
:param float delay: Delay between any retransmissions, default 0.0
378378
:param int nbits: Optional number of bits to send,
379379
useful to send fewer bits than in the data bytes
380380
"""

0 commit comments

Comments
 (0)