override new RadioLib's default current limit value (60 mA) to the previous value of 100mA

This commit is contained in:
Vladislav Osmanov
2021-09-08 14:30:52 +03:00
parent c8269d67c3
commit 1a671f2877
4 changed files with 23 additions and 0 deletions
+6
View File
@@ -19,6 +19,12 @@ int16_t RadioLibRF95::begin(float freq, float bw, uint8_t sf, uint8_t cr, uint8_
state = SX127x::begin(RF95_ALT_VERSION, syncWord, preambleLength);
RADIOLIB_ASSERT(state);
// current limit was removed from module' ctor
// override default value (60 mA)
state = setCurrentLimit(currentLimit);
DEBUG_MSG("Current limit set to %f\n", currentLimit);
DEBUG_MSG("Current limit set result %d\n", state);
// configure settings not accessible by API
state = config();
RADIOLIB_ASSERT(state);