Add module check
This commit is contained in:
parent
fcc0f30247
commit
ffd562598c
1 changed files with 4 additions and 0 deletions
|
@ -48,6 +48,10 @@ print "Sending", str
|
||||||
|
|
||||||
data = xx2262.MakeFrame(str, 8)
|
data = xx2262.MakeFrame(str, 8)
|
||||||
|
|
||||||
|
if not Rfm69.Test(0):
|
||||||
|
print "RFM69 not found!"
|
||||||
|
exit()
|
||||||
|
|
||||||
rfm = Rfm69()
|
rfm = Rfm69()
|
||||||
rfm.SetParams(
|
rfm.SetParams(
|
||||||
Freq = 433.92,
|
Freq = 433.92,
|
||||||
|
|
Loading…
Reference in a new issue