From 6d98e6ffe899cd3ea3ff31ca6fd5ff586ef7ac29 Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Thu, 24 Oct 2024 15:13:01 -0700 Subject: [PATCH] fix py streaming data example --- examples/python/streaming_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/python/streaming_data.py b/examples/python/streaming_data.py index 5336f4e..cbdaf84 100644 --- a/examples/python/streaming_data.py +++ b/examples/python/streaming_data.py @@ -94,7 +94,7 @@ def master(count: int = 1, size: int = 32): buf_iter = 0 # iterator of payloads for the while loop failures = 0 # keep track of manual retries start_timer = time.monotonic() * 1000 # start timer - for buf_index in size: # cycle through all payloads in stream + for buf_index in range(size): # cycle through all payloads in stream while not radio.write(stream[buf_iter]): # upload to TX FIFO failed because TX FIFO is full. # check for transmission errors