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):
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;
# 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)