mirror of
				https://github.com/manuelbl/ttn-esp32.git
				synced 2025-10-31 18:50:33 +01:00 
			
		
		
		
	Add more regions, disable class B features
This commit is contained in:
		
							
								
								
									
										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 | ||||
|  | ||||
|  | ||||
| @ -58,4 +58,8 @@ | ||||
|  | ||||
| #if LMIC_DEBUG_LEVEL > 0 || LMIC_X_DEBUG_LEVEL > 0 | ||||
| #include <stdio.h> | ||||
| #endif | ||||
| #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) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user