Merge pull request #898 from cyberman54/development

new country setting style
This commit is contained in:
Verkehrsrot 2022-10-19 22:55:47 +02:00 committed by GitHub
commit 01dbc43ff4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -276,6 +276,7 @@ void setup() {
libpax_default_config(&configuration); libpax_default_config(&configuration);
// configure WIFI sniffing // configure WIFI sniffing
strcpy(configuration.wifi_my_country, WIFI_MY_COUNTRY);
configuration.wificounter = cfg.wifiscan; configuration.wificounter = cfg.wifiscan;
configuration.wifi_channel_map = WIFI_CHANNEL_ALL; configuration.wifi_channel_map = WIFI_CHANNEL_ALL;
configuration.wifi_channel_switch_interval = cfg.wifichancycle; configuration.wifi_channel_switch_interval = cfg.wifichancycle;

View File

@ -48,9 +48,7 @@
*/ */
// WiFi scan parameters // WiFi scan parameters
#define WIFI_CHANNEL_MIN 1 // start channel number where scan begings #define WIFI_MY_COUNTRY "01" // select 2-letter locale for Wifi RF settings, e.g. "DE"; use "01" for world safe mode
#define WIFI_CHANNEL_MAX 13 // total channel number to scan
#define WIFI_MY_COUNTRY "EU" // select locale for Wifi RF settings
#define WIFI_CHANNEL_SWITCH_INTERVAL 50 // [seconds/100] -> 0,5 sec. #define WIFI_CHANNEL_SWITCH_INTERVAL 50 // [seconds/100] -> 0,5 sec.
// LoRa payload default parameters // LoRa payload default parameters