From 0c038b406394f6ccbcb2cbc0e11f5bff899dad48 Mon Sep 17 00:00:00 2001 From: Me No Dev Date: Sat, 21 Oct 2017 09:50:43 +0300 Subject: [PATCH] Update WiFiGeneric.cpp Missed definition --- libraries/WiFi/src/WiFiGeneric.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/WiFi/src/WiFiGeneric.cpp b/libraries/WiFi/src/WiFiGeneric.cpp index 2a6fa6ab..13ffc6ed 100644 --- a/libraries/WiFi/src/WiFiGeneric.cpp +++ b/libraries/WiFi/src/WiFiGeneric.cpp @@ -51,6 +51,13 @@ extern "C" { #undef max #include +#include "sdkconfig.h" + +#if CONFIG_FREERTOS_UNICORE +#define ARDUINO_RUNNING_CORE 0 +#else +#define ARDUINO_RUNNING_CORE 1 +#endif static xQueueHandle _network_event_queue; static TaskHandle_t _network_event_task_handle = NULL;