adding log to coding rate
This commit is contained in:
parent
38377d32af
commit
d6104bde39
1 changed files with 2 additions and 0 deletions
|
@ -261,6 +261,8 @@ void lora32_set_coding_rate(lora32_cfg_t *lora, uint8_t d) {
|
|||
|
||||
uint8_t cr = d - 4;
|
||||
|
||||
ESP_LOGI(TAG, "lora32_set_coding_rate: %d", factor);
|
||||
|
||||
lora32_write_reg(lora, REG_MODEM_CONFIG_1, (lora32_read_reg(lora, REG_MODEM_CONFIG_1) & 0xF1) | (cr << 1));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue