From 2f407ab4ed465d2086f5f429b3d0b4d7d80e907a Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Wed, 19 Oct 2022 22:55:22 +0200 Subject: [PATCH] new country setting style --- src/main.cpp | 1 + src/paxcounter_orig.conf | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 1ddb86f0..380120ee 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; diff --git a/src/paxcounter_orig.conf b/src/paxcounter_orig.conf index 2848a42d..5249a6f0 100644 --- a/src/paxcounter_orig.conf +++ b/src/paxcounter_orig.conf @@ -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