[SX127x] Skip printing symbol length
This commit is contained in:
parent
d0c4e3d6fb
commit
44ffce1725
2 changed files with 0 additions and 4 deletions
|
@ -117,7 +117,6 @@ int16_t SX1272::setBandwidth(float bw) {
|
|||
// calculate symbol length and set low data rate optimization, if auto-configuration is enabled
|
||||
if(this->ldroAuto) {
|
||||
float symbolLength = (float)(uint32_t(1) << SX127x::spreadingFactor) / (float)SX127x::bandwidth;
|
||||
RADIOLIB_DEBUG_PRINTLN("Symbol length: %f ms", symbolLength);
|
||||
if(symbolLength >= 16.0) {
|
||||
state = this->mod->SPIsetRegValue(RADIOLIB_SX127X_REG_MODEM_CONFIG_1, RADIOLIB_SX1272_LOW_DATA_RATE_OPT_ON, 0, 0);
|
||||
} else {
|
||||
|
@ -171,7 +170,6 @@ int16_t SX1272::setSpreadingFactor(uint8_t sf) {
|
|||
// calculate symbol length and set low data rate optimization, if auto-configuration is enabled
|
||||
if(this->ldroAuto) {
|
||||
float symbolLength = (float)(uint32_t(1) << SX127x::spreadingFactor) / (float)SX127x::bandwidth;
|
||||
RADIOLIB_DEBUG_PRINTLN("Symbol length: %f ms", symbolLength);
|
||||
if(symbolLength >= 16.0) {
|
||||
state = this->mod->SPIsetRegValue(RADIOLIB_SX127X_REG_MODEM_CONFIG_1, RADIOLIB_SX1272_LOW_DATA_RATE_OPT_ON, 0, 0);
|
||||
} else {
|
||||
|
|
|
@ -131,7 +131,6 @@ int16_t SX1278::setBandwidth(float bw) {
|
|||
// calculate symbol length and set low data rate optimization, if auto-configuration is enabled
|
||||
if(this->ldroAuto) {
|
||||
float symbolLength = (float)(uint32_t(1) << SX127x::spreadingFactor) / (float)SX127x::bandwidth;
|
||||
RADIOLIB_DEBUG_PRINTLN("Symbol length: %f ms", symbolLength);
|
||||
if(symbolLength >= 16.0) {
|
||||
state = this->mod->SPIsetRegValue(RADIOLIB_SX1278_REG_MODEM_CONFIG_3, RADIOLIB_SX1278_LOW_DATA_RATE_OPT_ON, 3, 3);
|
||||
} else {
|
||||
|
@ -185,7 +184,6 @@ int16_t SX1278::setSpreadingFactor(uint8_t sf) {
|
|||
// calculate symbol length and set low data rate optimization, if auto-configuration is enabled
|
||||
if(this->ldroAuto) {
|
||||
float symbolLength = (float)(uint32_t(1) << SX127x::spreadingFactor) / (float)SX127x::bandwidth;
|
||||
RADIOLIB_DEBUG_PRINTLN("Symbol length: %f ms", symbolLength);
|
||||
if(symbolLength >= 16.0) {
|
||||
state = this->mod->SPIsetRegValue(RADIOLIB_SX1278_REG_MODEM_CONFIG_3, RADIOLIB_SX1278_LOW_DATA_RATE_OPT_ON, 3, 3);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue