]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Add a small delay between the packets to improve the performance at 115200bps for...
authorrazvanm <razvanm>
Wed, 18 Feb 2009 21:30:07 +0000 (21:30 +0000)
committerrazvanm <razvanm>
Wed, 18 Feb 2009 21:30:07 +0000 (21:30 +0000)
support/sdk/python/tos.py

index 5d1d4eefa661e1a55447c02c5012e2d1eaeaf1cf..bbce96f2dac4989cb2b7e7bec1e5ef98e968204b 100644 (file)
@@ -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