From 3fc9b4598b7dbe8e171c7c3ef40741eca08e0051 Mon Sep 17 00:00:00 2001 From: "S. Seegel" Date: Tue, 31 Oct 2017 19:05:36 +0100 Subject: [PATCH] use setmode in send function --- rfm69.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)