[SX127x] Fixed missing debug newline

This commit is contained in:
jgromes 2023-05-28 22:13:51 +02:00
parent 0b92a33d83
commit 05bd83e0a2

View file

@ -185,7 +185,7 @@ int16_t SX1278::setSpreadingFactor(uint8_t sf) {
// calculate symbol length and set low data rate optimization, if auto-configuration is enabled // calculate symbol length and set low data rate optimization, if auto-configuration is enabled
if(this->ldroAuto) { if(this->ldroAuto) {
float symbolLength = (float)(uint32_t(1) << SX127x::spreadingFactor) / (float)SX127x::bandwidth; float symbolLength = (float)(uint32_t(1) << SX127x::spreadingFactor) / (float)SX127x::bandwidth;
RADIOLIB_DEBUG_PRINT("Symbol length: %f ms", symbolLength); RADIOLIB_DEBUG_PRINTLN("Symbol length: %f ms", symbolLength);
if(symbolLength >= 16.0) { if(symbolLength >= 16.0) {
state = this->mod->SPIsetRegValue(RADIOLIB_SX1278_REG_MODEM_CONFIG_3, RADIOLIB_SX1278_LOW_DATA_RATE_OPT_ON, 3, 3); state = this->mod->SPIsetRegValue(RADIOLIB_SX1278_REG_MODEM_CONFIG_3, RADIOLIB_SX1278_LOW_DATA_RATE_OPT_ON, 3, 3);
} else { } else {