use setmode in send function

This commit is contained in:
S. Seegel 2017-10-31 19:05:36 +01:00
parent f8a825ca31
commit 3fc9b4598b

View file

@ -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)