]> git.tnoah.ca Git - lora-radio.git/commitdiff
Fix TXEN / RXEN pin init for SX1280
authorjacob.eva <x00010@disroot.org>
Sun, 5 May 2024 16:16:09 +0000 (17:16 +0100)
committerjacob.eva <x00010@disroot.org>
Sun, 5 May 2024 16:16:09 +0000 (17:16 +0100)
sx128x.cpp

index 065598d9c7e8d855a223388bda6689e7ce364847..e61ffb006ba2b87e48b0f9b93c69eeac364882c8 100644 (file)
@@ -361,6 +361,14 @@ int sx128x::begin(unsigned long frequency)
     delay(10);
   }
 
+  if (_rxen != -1) {
+      pinMode(_rxen, OUTPUT);
+  }
+
+  if (_txen != -1) {
+      pinMode(_txen, OUTPUT);
+  }
+
   if (_busy != -1) {
       pinMode(_busy, INPUT);
   }