Skip to content

Commit 85bf019

Browse files
committed
make read_pulses_non_blocking private
1 parent b78e317 commit 85bf019

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
@@ -193,7 +193,7 @@ def decode_bits(self, pulses, debug=False):
193193
output[i // 8] |= 1
194194
return output
195195

196-
def read_pulses_non_blocking(self, input_pulses, max_pulse=10000, pulse_window=0.10):
196+
def _read_pulses_non_blocking(self, input_pulses, max_pulse=10000, pulse_window=0.10):
197197
"""Read out a burst of pulses without blocking until pulses stop for a specified
198198
period (pulse_window), pruning pulses after a pulse longer than ``max_pulse``.
199199
@@ -237,7 +237,7 @@ def read_pulses(self, input_pulses, max_pulse=10000, blocking=True,
237237
:param float blocking_delay: delay between pulse checks when blocking
238238
"""
239239
while True:
240-
pulses = self.read_pulses_non_blocking(input_pulses, max_pulse, pulse_window)
240+
pulses = self._read_pulses_non_blocking(input_pulses, max_pulse, pulse_window)
241241
if blocking and pulses is None:
242242
time.sleep(blocking_delay)
243243
continue

0 commit comments

Comments
 (0)