diff --git a/platformio.ini b/platformio.ini index f780a017..5f249bba 100644 --- a/platformio.ini +++ b/platformio.ini @@ -11,9 +11,9 @@ ; ---> SELECT TARGET PLATFORM HERE! <--- [platformio] -env_default = heltec_wifi_lora_32 +;env_default = heltec_wifi_lora_32 ;env_default = ttgov1 -;env_default = ttgov2 +env_default = ttgov2 ;env_default = lopy ;env_default = lopy4 ;env_default = lolin32lite_lora diff --git a/src/macsniff.cpp b/src/macsniff.cpp index 30ada2b5..b73264c1 100644 --- a/src/macsniff.cpp +++ b/src/macsniff.cpp @@ -65,7 +65,7 @@ bool mac_add(uint8_t *paddr, int8_t rssi, bool sniff_type) { // Log scan result ESP_LOGI(TAG, "%s RSSI %ddBi -> MAC %s -> Hash %04X -> WiFi:%d BLTH:%d %s", sniff_type==MAC_SNIFF_WIFI ? "WiFi":"BLTH", - rssi, buff, hashedmac, macs_wifi, + rssi, buff, hashedmac, macs_wifi, macs_ble, added ? "new" : "known"); #ifdef VENDORFILTER diff --git a/src/main.cpp b/src/main.cpp index caeca29a..31d2d1cc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -366,7 +366,7 @@ uint64_t uptime() { void updateDisplay() { // timed display refresh according to refresh cycle setting - uint32_t previousDisplaymillis = currentMillis; + uint32_t previousDisplaymillis; if (currentMillis - previousDisplaymillis >= DISPLAYREFRESH_MS) { refreshDisplay(); @@ -527,7 +527,7 @@ xTaskCreatePinnedToCore(sniffer_loop, "wifisniffer", 16384, ( void * ) 1, 1, NUL #ifdef BLECOUNTER if (cfg.blescan) { // start BLE task only if BLE function is enabled in NVRAM configuration ESP_LOGI(TAG, "Starting Bluetooth task on core 0"); - xTaskCreatePinnedToCore(bt_loop, "btscan", 16384, NULL, 5, NULL, 0); + xTaskCreatePinnedToCore(bt_loop, "btscan", 16384, ( void * ) 1, 1, NULL, 0); } #endif