diff --git a/tools/pyboard.py b/tools/pyboard.py
index 9157c6058fc9694fa2940bfed1bbeaffef11c03c..eebb9186d173f18dca90e5986e8d453592b55d4e 100755
--- a/tools/pyboard.py
+++ b/tools/pyboard.py
@@ -133,11 +133,10 @@ class Pyboard:
                 data = data + new_data
                 if data_consumer:
                     data_consumer(new_data)
-                #time.sleep(0.01)
                 timeout_count = 0
             else:
                 timeout_count += 1
-                if timeout is not None and timeout_count >= 10 * timeout:
+                if timeout is not None and timeout_count >= 100 * timeout:
                     break
                 time.sleep(0.01)
         return data