From fa5a66e9a8175d3888c165d75b4a8f6d99081d53 Mon Sep 17 00:00:00 2001 From: Lukas Berbuer Date: Wed, 4 Dec 2024 13:54:42 +0100 Subject: [PATCH] feat(linwave): remove warning for odd pulse counts --- src/waveline/linwave.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/waveline/linwave.py b/src/waveline/linwave.py index 8679692..eb94423 100644 --- a/src/waveline/linwave.py +++ b/src/waveline/linwave.py @@ -544,19 +544,14 @@ async def start_pulsing( """ Start pulsing. - The number of pulses should be even, because pulses are generated by a square-wave signal - (between LOW and HIGH) and the pulse signal should end LOW. - Args: channel: Channel number (0 for all channels) interval: Interval between pulses in seconds - count: Number of pulses per channel (should be even), 0 for infinite pulses + count: Number of pulses per channel, 0 for infinite pulses cycles: Number of pulse cycles (automatically pulse through each channel in cycles). Only useful if all channels are chosen. """ self._check_channel_number(channel) - if count % 2 != 0: - warn("Number of pulse counts should be even", stacklevel=1) logger.info( "Start pulsing on %s (interval: %f s, count: %d, cycles: %d)", _channel_str(channel),