Remove mono core option for ESP32 BLE

this options is no longer used as now the ESP32 is a stable board with multicore option activated
This commit is contained in:
Florian committed 2019-06-21 23:03:37 +02:00
1 parent 6996867e53
commit 1a0dacaf3f
3 files changed
-27

No files matched your search

-16
View File
@@ -154,7 +154,6 @@ vector<BLEdevice> devices;
BLEinterval = TimeBtw_Read;
trc(F("BLEinterval btw scans"));
trc(BLEinterval);
#ifdef multiCore
// we setup a task with priority one to avoid conflict with other gateways
xTaskCreatePinnedToCore(
coreTask, /* Function to implement the task */
@@ -165,12 +164,8 @@ vector<BLEdevice> devices;
NULL, /* Task handle. */
taskCore); /* Core where the task should run */
trc(F("ZgatewayBT multicore ESP32 setup done "));
#else
trc(F("ZgatewayBT singlecore ESP32 setup done "));
#endif
}
#ifdef multiCore
void coreTask( void * pvParameters ){
String taskMessage = "BT Task running on core ";
@@ -185,17 +180,6 @@ vector<BLEdevice> devices;
boolean BTtoMQTT(){ // for on demande BLE scans
BLEscan();
}
#else
boolean BTtoMQTT(){
unsigned long now = millis();
if (now > (timeBLE + BLEinterval)) {
timeBLE = now;
BLEscan();
return true;
}
return false;
}
#endif
void BLEscan(){
TIMERG0.wdt_wprotect=TIMG_WDT_WKEY_VALUE;