From 22bca31ce3e36aab8314212f08c8346647b81209 Mon Sep 17 00:00:00 2001 From: geeksville Date: Thu, 30 Apr 2020 18:05:06 -0700 Subject: [PATCH] properly set the RF95 iface --- src/rf95/RF95Interface.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/rf95/RF95Interface.cpp b/src/rf95/RF95Interface.cpp index 58176e060..03270da15 100644 --- a/src/rf95/RF95Interface.cpp +++ b/src/rf95/RF95Interface.cpp @@ -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)