new country setting style

This commit is contained in:
cyberman54 2022-10-19 22:55:22 +02:00
parent 51246f1296
commit 2f407ab4ed
2 changed files with 2 additions and 3 deletions

View File

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

View File

@ -48,9 +48,7 @@
*/
// WiFi scan parameters
#define WIFI_CHANNEL_MIN 1 // start channel number where scan begings
#define WIFI_CHANNEL_MAX 13 // total channel number to scan
#define WIFI_MY_COUNTRY "EU" // select locale for Wifi RF settings
#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_SWITCH_INTERVAL 50 // [seconds/100] -> 0,5 sec.
// LoRa payload default parameters