[SX126x] Added debug output
This commit is contained in:
parent
ac30ca652f
commit
ba5522981d
1 changed files with 3 additions and 0 deletions
|
@ -983,6 +983,9 @@ int16_t SX126x::setModulationParams(uint8_t sf, uint8_t bw, uint8_t cr, uint8_t
|
|||
// calculate symbol length and enable low data rate optimization, if needed
|
||||
if(ldro == 0xFF) {
|
||||
float symbolLength = (float)(uint32_t(1) << _sf) / (float)_bwKhz;
|
||||
DEBUG_PRINT("Symbol length: ");
|
||||
DEBUG_PRINT(symbolLength);
|
||||
DEBUG_PRINTLN(" ms");
|
||||
if(symbolLength >= 16.0) {
|
||||
_ldro = SX126X_LORA_LOW_DATA_RATE_OPTIMIZE_ON;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue