properly set the RF95 iface

1.2-legacy
geeksville 2020-04-30 18:05:06 -07:00
rodzic 48c045a253
commit 22bca31ce3
1 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -24,14 +24,13 @@ bool RF95Interface::init()
*/
if (CH0 < 500.0) {
auto dev = new RFM96(&module);
lora = dev;
iface = lora = dev;
res = dev->begin(freq, bw, sf, cr, syncWord, power, currentLimit, preambleLength);
} else {
auto dev = new RFM95(&module);
lora = dev;
iface = lora = dev;
res = dev->begin(freq, bw, sf, cr, syncWord, power, currentLimit, preambleLength);
}
DEBUG_MSG("LORA init result %d\n", res);
if (res == ERR_NONE)