connected=0;
while connected==0:
while self.verb!=0x7F or self.data!="http://goodfet.sf.net/":
connected=0;
while connected==0:
while self.verb!=0x7F or self.data!="http://goodfet.sf.net/":
+ if attempts>2:
+ print "Resyncing.";
self.serialport.flushInput()
self.serialport.flushOutput()
#Explicitly set RTS and DTR to halt board.
self.serialport.flushInput()
self.serialport.flushOutput()
#Explicitly set RTS and DTR to halt board.
#TelosB reset, prefer software to I2C SPST Switch.
if(os.environ.get("platform")=='telosb'):
#TelosB reset, prefer software to I2C SPST Switch.
if(os.environ.get("platform")=='telosb'):
self.telosBReset();
#self.serialport.write(chr(0x80));
#self.serialport.write(chr(0x80));
self.telosBReset();
#self.serialport.write(chr(0x80));
#self.serialport.write(chr(0x80));