X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETCCSPI.py;h=e20581159566e071e3b42e390ae9efac677a2d00;hp=5ea56be3a1f8dfbb958606a7d88b8295db6a1ed7;hb=2230a0e25c0ac42d71acbb3c6519e5124ee93867;hpb=fd9430b330def6518620ac0ec190405d186c7505 diff --git a/client/GoodFETCCSPI.py b/client/GoodFETCCSPI.py index 5ea56be..e205811 100644 --- a/client/GoodFETCCSPI.py +++ b/client/GoodFETCCSPI.py @@ -133,7 +133,7 @@ class GoodFETCCSPI(GoodFET): mhz=2048+(fsctrl&0x3ff) return mhz*1000000; def RF_setchan(self,channel): - if channel < 11 and channel > 26: + if channel < 11 or channel > 26: print "Only 802.15.4 channels 11 to 26 are currently supported."; else: self.RF_setfreq( ( (channel-11)*5 + 2405 ) * 1000000 );