Update LLCC68.cpp

This commit is contained in:
S5NC 2024-04-05 13:07:44 +01:00 committed by GitHub
parent e7e1388de4
commit 676754d257
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,7 @@ LLCC68::LLCC68(Module* mod) : SX1262(mod) {
this->XTAL = true; this->XTAL = true;
} }
int16_t LLCC68::begin(float freq, float bw, uint8_t sf, uint8_t cr, uint8_t syncWord, int8_t pwr, uint16_t preambleLength, float tcxoVoltage, bool useRegulatorLDO) { int16_t LLCC68::begin(float freq, float bw, uint8_t sf, uint8_t cr, uint8_t syncWord, int8_t pwr, uint16_t preambleLength, float tcxoVoltage, bool useRegulatorLDO, uint8_t rampTime) {
// execute common part // execute common part
int16_t state = SX126x::begin(cr, syncWord, preambleLength, tcxoVoltage, useRegulatorLDO); int16_t state = SX126x::begin(cr, syncWord, preambleLength, tcxoVoltage, useRegulatorLDO);
RADIOLIB_ASSERT(state); RADIOLIB_ASSERT(state);
@ -21,7 +21,7 @@ int16_t LLCC68::begin(float freq, float bw, uint8_t sf, uint8_t cr, uint8_t sync
state = setSpreadingFactor(sf); state = setSpreadingFactor(sf);
RADIOLIB_ASSERT(state); RADIOLIB_ASSERT(state);
state = setOutputPower(pwr); state = setOutputPower(pwr, rampTime);
RADIOLIB_ASSERT(state); RADIOLIB_ASSERT(state);
state = SX126x::fixPaClamping(); state = SX126x::fixPaClamping();