Skip to content

Commit

Permalink
Update mp_repl_experiment.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aivarannamaa committed Sep 25, 2020
1 parent bf566a3 commit 760396c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion misc/mp_repl_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MODE = "paste" # "paste" or "raw"
BLOCK_SIZE = 256
LENGTH_OF_STRING_LITERAL = 1000 # affects the size of the script sent to the device
NUM_ITERATIONS = 100 # how many times to send the script to the device
NUM_ITERATIONS = 10000 # how many times to send the script to the device

# The output of following code tells me whether the code was received intact or not
code = """
Expand Down Expand Up @@ -80,6 +80,7 @@ def run_in_paste_mode():
start_raw_mode()

for i in range(NUM_ITERATIONS):
print("Iteration", i)
if MODE == "raw":
run_in_raw_mode()
else:
Expand Down

0 comments on commit 760396c

Please sign in to comment.