diff --git a/main/esp32-lora.c b/main/esp32-lora.c index b79ccdc..715ff24 100644 --- a/main/esp32-lora.c +++ b/main/esp32-lora.c @@ -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);