temp hack to get new rf95 driver working

1.2-legacy
geeksville 2020-04-30 19:31:17 -07:00
rodzic 22bca31ce3
commit 1fab9c5aac
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

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