This commit is contained in:
Klaus K Wilting committed 2018-07-24 23:25:41 +02:00
1 parent c7fd32068c
commit 5ae8f47b9d
4 files changed
+16 -9

No files matched your search

+5
View File
@@ -10,6 +10,8 @@ static const char TAG[] = "main";
// do all housekeeping
void doHomework() {
static uint64_t uptimecounter;
// read battery voltage into global variable
#ifdef HAS_BATTERY_PROBE
batt_voltage = read_voltage();
@@ -37,6 +39,9 @@ void doHomework() {
reset_counters(); // clear macs container and reset all counters
reset_salt(); // get new salt for salting hashes
}
// update uptime counter
uptimecounter = uptime();
}
void checkHousekeeping() {
+4 -2
View File
@@ -12,15 +12,16 @@
// Local logging tag
static const char TAG[] = "wifi";
/*
static wifi_country_t wifi_country = {WIFI_MY_COUNTRY, WIFI_CHANNEL_MIN,
WIFI_CHANNEL_MAX, 0,
WIFI_COUNTRY_POLICY_MANUAL};
*/
/*
static wifi_country_t wifi_country = {WIFI_MY_COUNTRY, WIFI_CHANNEL_MIN,
WIFI_CHANNEL_MAX,
WIFI_COUNTRY_POLICY_MANUAL};
*/
// globals
uint16_t salt;
@@ -95,6 +96,7 @@ bool mac_add(uint8_t *paddr, int8_t rssi, bool sniff_type) {
if (cfg.monitormode) {
beaconID = isBeacon(addr2int);
if (beaconID) {
ESP_LOGI(TAG, "Beacon ID#%d detected", beaconID);
#if (HAS_LED != NOT_A_PIN) || defined(HAS_RGB_LED)
blink_LED(COLOR_WHITE, 2000);
#endif