diff --git a/rfm69.py b/rfm69.py index 63117e1..099de7e 100644 --- a/rfm69.py +++ b/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)