From 46e13d23d96576e8ea7f9a15c7fa791bddbbdbc6 Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Tue, 21 Jun 2022 21:51:45 -0700 Subject: [PATCH] Add debug to monitor radio reconfiguration for #1014 - --- src/mesh/RF95Interface.cpp | 4 ++++ src/mesh/SX126xInterface.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/mesh/RF95Interface.cpp b/src/mesh/RF95Interface.cpp index 2a0789df..bab24b73 100644 --- a/src/mesh/RF95Interface.cpp +++ b/src/mesh/RF95Interface.cpp @@ -70,6 +70,10 @@ bool RF95Interface::init() int res = lora->begin(getFreq(), bw, sf, cr, syncWord, power, currentLimit, preambleLength); DEBUG_MSG("RF95 init result %d\n", res); + DEBUG_MSG("Frequency set to %f\n", getFreq()); + DEBUG_MSG("Bandwidth set to %f\n", bw); + DEBUG_MSG("Power output set to %d\n", power); + // current limit was removed from module' ctor // override default value (60 mA) res = lora->setCurrentLimit(currentLimit); diff --git a/src/mesh/SX126xInterface.cpp b/src/mesh/SX126xInterface.cpp index 61f93931..df00ba51 100644 --- a/src/mesh/SX126xInterface.cpp +++ b/src/mesh/SX126xInterface.cpp @@ -56,6 +56,10 @@ bool SX126xInterface::init() // \todo Display actual typename of the adapter, not just `SX126x` DEBUG_MSG("SX126x init result %d\n", res); + DEBUG_MSG("Frequency set to %f\n", getFreq()); + DEBUG_MSG("Bandwidth set to %f\n", bw); + DEBUG_MSG("Power output set to %d\n", power); + // current limit was removed from module' ctor // override default value (60 mA) res = lora.setCurrentLimit(currentLimit);