- #This swaps between 1Mbps and 2Mbps.
- #TODO add support for 256kbps, if anyone uses it.
- if count&1:
- rate=rate|0x08;
- #print "Setting rate to 0x%02x" % rate;
- if(rate==0x20):
- rate=0x08;
- self.client.poke(0x06,rate);
- count=(count>>2);
+ if self.rate:
+ #Then the data rate.
+ rate=0;
+
+ #This swaps between 1Mbps and 2Mbps.
+ #TODO add support for 256kbps, if anyone uses it.
+ if count&1:
+ rate=rate|0x08;
+ #print "Setting rate to 0x%02x" % rate;
+ if(rate==0x20):
+ rate=0x08;
+ self.client.poke(0x06,rate);
+ count=(count>>1);