X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETMCPCANCommunication.py;h=f91958eecedfa95af8022d347448bf5ce7e1f22e;hp=b4a781db0f1de59fb46995aa531b94d1a7664f69;hb=8e28954868efbb609df0c37369b8d1ec9425d4f1;hpb=5697ddbc0de91b8eb8cbde1f7fbf7bcd990ce836 diff --git a/client/GoodFETMCPCANCommunication.py b/client/GoodFETMCPCANCommunication.py index b4a781d..f91958e 100644 --- a/client/GoodFETMCPCANCommunication.py +++ b/client/GoodFETMCPCANCommunication.py @@ -396,7 +396,7 @@ class GoodFETMCPCANCommunication: def spitSingle(self,freq, standardid, repeat, duration = None, debug = False, packet = None): self.spitSetup(freq); - spit(self,freq, standardid, repeat, duration = None, debug = False, packet = None): + spit(self,freq, standardid, repeat, duration = None, debug = False, packet = None) def spit(self,freq, standardid, repeat, duration = None, debug = False, packet = None): @@ -452,10 +452,11 @@ class GoodFETMCPCANCommunication: starttime = time.time(); while((time.time()-starttime < duration)): self.client.MCPrts(TXB0=True); + print "MSG printed" else: while(1): self.client.MCPrts(TXB0=True); - + print "messages injected" # MORE DEBUGGING if(debug): checkcount = 0; @@ -631,7 +632,7 @@ if __name__ == "__main__": # transmission (travis thinks this is because we're sniffing in listen-only # and thus not generating an ack bit on the recieving board) if(args.verb=="spit"): - comm.spit(freq=freq, standardid=standardid,duration=duration, repeat=repeat, debug=debug) + comm.spitSingle(freq=freq, standardid=standardid,duration=duration, repeat=repeat, debug=debug)