mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-20 04:01:14 +00:00
Merge pull request #1530 from mc-hamster/master
Add debug to monitor radio reconfiguration for #1014
This commit is contained in:
commit
c81fbd867d
@ -70,6 +70,10 @@ bool RF95Interface::init()
|
|||||||
int res = lora->begin(getFreq(), bw, sf, cr, syncWord, power, currentLimit, preambleLength);
|
int res = lora->begin(getFreq(), bw, sf, cr, syncWord, power, currentLimit, preambleLength);
|
||||||
DEBUG_MSG("RF95 init result %d\n", res);
|
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
|
// current limit was removed from module' ctor
|
||||||
// override default value (60 mA)
|
// override default value (60 mA)
|
||||||
res = lora->setCurrentLimit(currentLimit);
|
res = lora->setCurrentLimit(currentLimit);
|
||||||
|
@ -56,6 +56,10 @@ bool SX126xInterface<T>::init()
|
|||||||
// \todo Display actual typename of the adapter, not just `SX126x`
|
// \todo Display actual typename of the adapter, not just `SX126x`
|
||||||
DEBUG_MSG("SX126x init result %d\n", res);
|
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
|
// current limit was removed from module' ctor
|
||||||
// override default value (60 mA)
|
// override default value (60 mA)
|
||||||
res = lora.setCurrentLimit(currentLimit);
|
res = lora.setCurrentLimit(currentLimit);
|
||||||
|
Loading…
Reference in New Issue
Block a user