projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
setRadioChannel
[goodfet]
/
client
/
GoodFETEM260.py
diff --git
a/client/GoodFETEM260.py
b/client/GoodFETEM260.py
index
6a0286f
..
205f0b3
100644
(file)
--- a/
client/GoodFETEM260.py
+++ b/
client/GoodFETEM260.py
@@
-141,5
+141,10
@@
class GoodFETEM260(GoodFETSPI):
data=self.EZSPtrans([0x7A]);
return ord(data[5]);
+ def setRadioChannel(self,channel):
+ """Set the radio channel."""
+
+ data=self.EZSPtrans([0x9A, channel&xFF]);
+ return ord(data[5]);