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