mirror of
https://github.com/manuelbl/ttn-esp32.git
synced 2025-06-15 12:24:27 +02:00
Add more regions, disable class B features
This commit is contained in:
parent
1fe8bf692c
commit
7488566e3c
15
Kconfig
15
Kconfig
@ -1,7 +1,7 @@
|
||||
menu "The Things Network"
|
||||
|
||||
choice TTN_LORA_FREQ
|
||||
prompt "TTN LoRa frequency"
|
||||
prompt "TTN LoRa frequency / region"
|
||||
default TTN_LORA_FREQ_DISABLED
|
||||
help
|
||||
LoRa frequency must match the geographic region the device is operated in.
|
||||
@ -11,10 +11,19 @@ config TTN_LORA_FREQ_DISABLED
|
||||
bool "LoRa Disabled"
|
||||
|
||||
config TTN_LORA_FREQ_EU_868
|
||||
bool "868 MHz (Europe)"
|
||||
bool "Europe (868 MHz)"
|
||||
|
||||
config TTN_LORA_FREQ_US_915
|
||||
bool "915 Mhz (North America)"
|
||||
bool "North America (915 Mhz)"
|
||||
|
||||
config TTN_LORA_FREQ_AU_921
|
||||
bool "Australia (921 Mhz)"
|
||||
|
||||
config TTN_LORA_FREQ_AS_923
|
||||
bool "Asia (923 Mhz)"
|
||||
|
||||
config TTN_LORA_FREQ_IN_866
|
||||
bool "India (866 Mhz)"
|
||||
|
||||
endchoice
|
||||
|
||||
|
@ -59,3 +59,7 @@
|
||||
#if LMIC_DEBUG_LEVEL > 0 || LMIC_X_DEBUG_LEVEL > 0
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
|
||||
#define DISABLE_PING
|
||||
|
||||
#define DISABLE_BEACONS
|
||||
|
@ -1715,7 +1715,8 @@ static void engineUpdate (void) {
|
||||
#endif // !DISABLE_JOIN
|
||||
|
||||
ostime_t now = os_getTime();
|
||||
ostime_t rxtime = 0;
|
||||
// ttn-esp32 change: suppress unused variable warning
|
||||
ostime_t __attribute__((unused)) rxtime = 0;
|
||||
ostime_t txbeg = 0;
|
||||
|
||||
#if !defined(DISABLE_BEACONS)
|
||||
|
Loading…
Reference in New Issue
Block a user