From: travisutk Date: Mon, 29 Aug 2011 12:17:42 +0000 (+0000) Subject: Bluetooth reliability fix, for packets that weren't quite received or transmitted. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=04de1e3bc7c3c2721bbfcae0dd5135dbd2befc80;ds=inline Bluetooth reliability fix, for packets that weren't quite received or transmitted. Might be necessary for some usb/serial adapters other than the FTDI. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1041 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/client/GoodFET.py b/client/GoodFET.py index 4e42bc5..395383b 100755 --- a/client/GoodFET.py +++ b/client/GoodFET.py @@ -83,10 +83,15 @@ class GoodFETbtser: def write(self,msg): """Send traffic.""" + import time; + time.sleep(0.1); return self.sock.send(msg); - def read(self,len): + def read(self,length): """Read traffic.""" - return self.sock.recv(len); + data=""; + while len(data) 2) and (sys.argv[2]=="full") client.monitor_list_apps(full);