From: razvanm Date: Wed, 18 Feb 2009 21:30:07 +0000 (+0000) Subject: Add a small delay between the packets to improve the performance at 115200bps for... X-Git-Tag: rc_6_tinyos_2_1_1~488 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=d380483a17df056bdb3539dba90181b30d5b6188 Add a small delay between the packets to improve the performance at 115200bps for telos. --- diff --git a/support/sdk/python/tos.py b/support/sdk/python/tos.py index 5d1d4eef..bbce96f2 100644 --- a/support/sdk/python/tos.py +++ b/support/sdk/python/tos.py @@ -113,6 +113,7 @@ class Serial: #print "DEBUG: putBytes:", data for b in data: self._s.write(struct.pack('B', b)) + time.sleep(0.000001) def getTimeout(self): return self._s.timeout