From 34d32df2489e1ea2e3d8dad3a87eee6f81e0da62 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sun, 15 Apr 2018 13:59:37 +0200 Subject: [PATCH] changed core 1->0; increased stack size for bt task -> 8192 --- src/macsniff.cpp | 2 +- src/main.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/macsniff.cpp b/src/macsniff.cpp index 20e42c00..94f52020 100644 --- a/src/macsniff.cpp +++ b/src/macsniff.cpp @@ -88,7 +88,7 @@ bool mac_add(uint8_t *paddr, int8_t rssi, bool sniff_type) { #ifdef VENDORFILTER } else { // Very noisy - ESP_LOGD(TAG, "Filtered MAC %02X:%02X:%02X:%02X:%02X:%02X", paddr[0],paddr[1],paddr[2],paddr[3],paddr[5],paddr[5]); + // ESP_LOGD(TAG, "Filtered MAC %02X:%02X:%02X:%02X:%02X:%02X", paddr[0],paddr[1],paddr[2],paddr[3],paddr[5],paddr[5]); } #endif diff --git a/src/main.cpp b/src/main.cpp index 16444cf4..6a50a728 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -504,11 +504,11 @@ salt_reset(); // get new 16bit for salting hashes #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 1"); - xTaskCreatePinnedToCore(bt_loop, "btscan", 2048, NULL, 5, NULL, 0); + xTaskCreatePinnedToCore(bt_loop, "btscan", 8192, NULL, 5, NULL, 0); } #endif // to come here: code for switching off core 1 -#else // run wifi task on core 0 and lora task on core 1 and bt task on core 1 +#else // run wifi task on core 0 and lora task on core 1 and bt task on core 0 ESP_LOGI(TAG, "Starting Lora task on core 1"); xTaskCreatePinnedToCore(lorawan_loop, "loratask", 2048, ( void * ) 1, ( 5 | portPRIVILEGE_BIT ), NULL, 1); ESP_LOGI(TAG, "Starting Wifi task on core 0"); @@ -516,7 +516,7 @@ salt_reset(); // get new 16bit for salting hashes #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 1"); - xTaskCreatePinnedToCore(bt_loop, "btscan", 2048, NULL, 5, NULL, 1); + xTaskCreatePinnedToCore(bt_loop, "btscan", 8192, NULL, 5, NULL, 0); } #endif #endif