X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETMCPCANCommunication.py;h=9c9c48951075771851e97e06f941682f927dc415;hp=169e02a02985dbd9e71bc905530debdc623028ca;hb=fbd16932e0d96f1f9611d8a881b8eefe02f1f5cb;hpb=a1eecd9300fc8c342e5908e81d2468e47698a31b diff --git a/client/GoodFETMCPCANCommunication.py b/client/GoodFETMCPCANCommunication.py index 169e02a..9c9c489 100644 --- a/client/GoodFETMCPCANCommunication.py +++ b/client/GoodFETMCPCANCommunication.py @@ -476,9 +476,11 @@ class GoodFETMCPCANCommunication: self.client.txpacket(packet) ## listen for 2 packets. one should be the rtr we requested the other should be ## a new packet response - starttime = time.tim() + starttime = time.time() while ((time.time() - starttime) < duration): packet = self.client.rxpacket() + if( packet == None): + continue row = [] row.append("%f"%time.time()) #timestamp row.append(0) #error flag (not checkign)