diff --git a/drivers/sx127x/sx127x.c b/drivers/sx127x/sx127x.c index 819cbef4e5..a748e25719 100644 --- a/drivers/sx127x/sx127x.c +++ b/drivers/sx127x/sx127x.c @@ -180,7 +180,7 @@ void sx127x_init_radio_settings(sx127x_t *dev) sx127x_set_fixed_header_len_mode(dev, LORA_FIXED_HEADER_LEN_MODE_DEFAULT); sx127x_set_iq_invert(dev, LORA_IQ_INVERTED_DEFAULT); sx127x_set_payload_length(dev, LORA_PAYLOAD_LENGTH_DEFAULT); - sx127x_set_preamble_length(dev, LORA_PREAMBLE_LENGTH_DEFAULT); + sx127x_set_preamble_length(dev, CONFIG_LORA_PREAMBLE_LENGTH_DEFAULT); sx127x_set_symbol_timeout(dev, LORA_SYMBOL_TIMEOUT_DEFAULT); sx127x_set_rx_single(dev, SX127X_RX_SINGLE); sx127x_set_tx_timeout(dev, SX127X_TX_TIMEOUT_DEFAULT); diff --git a/sys/include/net/lora.h b/sys/include/net/lora.h index a704b3c6d6..2a72d914a2 100644 --- a/sys/include/net/lora.h +++ b/sys/include/net/lora.h @@ -39,8 +39,8 @@ extern "C" { #endif /** @brief Preamble length, same for Tx and Rx */ -#ifndef LORA_PREAMBLE_LENGTH_DEFAULT -#define LORA_PREAMBLE_LENGTH_DEFAULT (8U) +#ifndef CONFIG_LORA_PREAMBLE_LENGTH_DEFAULT +#define CONFIG_LORA_PREAMBLE_LENGTH_DEFAULT (8U) #endif /** @brief Symbols timeout (s) */