debug log setting header mode
This commit is contained in:
parent
db9b74ec76
commit
7ec011f15a
1 changed files with 4 additions and 0 deletions
|
@ -80,12 +80,16 @@ double lora32_calc_datarate(lora32_cfg_t *lora) {
|
|||
}
|
||||
|
||||
void lora23_set_explicit_header(lora32_cfg_t *lora) {
|
||||
ESP_LOGD(TAG, "setting explicit header");
|
||||
|
||||
lora->implicitHeader = false;
|
||||
|
||||
lora32_write_reg(lora, REG_MODEM_CONFIG_1, lora32_read_reg(lora, REG_MODEM_CONFIG_1) & 0xFE);
|
||||
}
|
||||
|
||||
void lora23_set_implicit_header(lora32_cfg_t *lora) {
|
||||
ESP_LOGD(TAG, "setting implicit header");
|
||||
|
||||
lora->implicitHeader = true;
|
||||
|
||||
lora32_write_reg(lora, REG_MODEM_CONFIG_1, lora32_read_reg(lora, REG_MODEM_CONFIG_1) | 0x01);
|
||||
|
|
Loading…
Reference in a new issue