From 1fab9c5aac93b7caf71770b76cff0ca333bed725 Mon Sep 17 00:00:00 2001 From: geeksville Date: Thu, 30 Apr 2020 19:31:17 -0700 Subject: [PATCH] temp hack to get new rf95 driver working --- src/rf95/RF95Interface.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rf95/RF95Interface.cpp b/src/rf95/RF95Interface.cpp index 03270da15..fc0175af3 100644 --- a/src/rf95/RF95Interface.cpp +++ b/src/rf95/RF95Interface.cpp @@ -21,8 +21,9 @@ bool RF95Interface::init() int res; /** * We do a nasty check on freq range to figure our RFM96 vs RFM95 + * */ - if (CH0 < 500.0) { + if (CH0 < 530.0) { auto dev = new RFM96(&module); iface = lora = dev; res = dev->begin(freq, bw, sf, cr, syncWord, power, currentLimit, preambleLength); @@ -115,7 +116,7 @@ bool RF95Interface::canSendImmediately() // To do otherwise would be doubly bad because not only would we drop the packet that was on the way in, // we almost certainly guarantee no one outside will like the packet we are sending. bool busyTx = sendingPacket != NULL; - bool busyRx = isReceiving && lora->getPacketLength() > 0; + bool busyRx = false; // FIXME - use old impl. isReceiving && lora->getPacketLength() > 0; if (busyTx || busyRx) DEBUG_MSG("Can not set now, busyTx=%d, busyRx=%d\n", busyTx, busyRx);