use setmode in send function
This commit is contained in:
parent
f8a825ca31
commit
3fc9b4598b
1 changed files with 1 additions and 2 deletions
3
rfm69.py
3
rfm69.py
|
@ -315,8 +315,7 @@ class Rfm69:
|
|||
print("Unrecognized option >>" + key + "<<")
|
||||
|
||||
def SendPacket(self, data):
|
||||
self.__WriteReg(RegOpMode, MODE_STDBY << 2)
|
||||
self.__WaitMode()
|
||||
self.__SetMode(MODE_STDBY)
|
||||
|
||||
#flush FIFO
|
||||
status = self.ReadReg(RegIrqFlags2)
|
||||
|
|
Loading…
Reference in a new issue