net/lora : Change defaults

Change 'CONFIG_LORA_SF_DEFAULT' to 'SF7' and
'CONFIG_LORA_CR_DEFAULT' to 'LORA_CR_4_5' to
allow shorter air times and make it easier to meet country
specific regulations.
This commit is contained in:
Akshai M 2020-09-11 10:48:54 +05:30
parent b57365cc7f
commit a9f7b88624
2 changed files with 4 additions and 4 deletions

View File

@ -108,7 +108,7 @@ extern "C" {
#endif
#ifndef CONFIG_LORA_SF_DEFAULT
#define CONFIG_LORA_SF_DEFAULT (LORA_SF12)
#define CONFIG_LORA_SF_DEFAULT (LORA_SF7)
#endif
/** @brief Set Coding Rate (CR)
@ -134,7 +134,7 @@ extern "C" {
#endif
#ifndef CONFIG_LORA_CR_DEFAULT
#define CONFIG_LORA_CR_DEFAULT (LORA_CR_4_8)
#define CONFIG_LORA_CR_DEFAULT (LORA_CR_4_5)
#endif
/** @brief Set this to 1 to enable inverted I/Q mode

View File

@ -53,7 +53,7 @@ endchoice
choice
bool "Spreading factor"
default LORA_SF_DEFAULT_SF12
default LORA_SF_DEFAULT_SF7
help
Configure Spreading Factor (SF). SF denotes the amount of spreading code
applied to the original data signal. A larger SF increases the time on
@ -88,7 +88,7 @@ endchoice
choice
bool "Coding rate"
default LORA_CR_DEFAULT_CR_4_8
default LORA_CR_DEFAULT_CR_4_5
help
Configure Coding rate (CR). CR denotes the implementation of forward
error correction (FEC). This may be done by encoding 4-bit data with