adding log to coding rate

This commit is contained in:
Morgan 'ARR\!' Allen 2020-02-26 07:43:35 -08:00
parent 38377d32af
commit d6104bde39

View file

@ -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));
}