Skip to content

Commit

Permalink
esp32: switching to unicore because of espressif/esp-idf#2892
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Rogg committed Feb 22, 2019
1 parent cb85fb8 commit 2941717
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/low_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,12 @@ low_main_t *low_init()
for(int i = 0; i < LOW_NUM_DATA_THREADS; i++)
{
#if LOW_ESP32_LWIP_SPECIALITIES
err = xTaskCreatePinnedToCore((void (*)(void *))low_data_thread_main,
err = xTaskCreate((void (*)(void *))low_data_thread_main,
"data",
CONFIG_DATA_THREAD_STACK_SIZE,
low,
CONFIG_DATA_PRIORITY,
&low->data_thread[i],
0);
&low->data_thread[i]);
if(err != pdPASS)
{
fprintf(
Expand Down Expand Up @@ -346,13 +345,12 @@ low_main_t *low_init()
goto err;
}
#if LOW_ESP32_LWIP_SPECIALITIES
err = xTaskCreatePinnedToCore((void (*)(void *))low_web_thread_main,
err = xTaskCreate((void (*)(void *))low_web_thread_main,
"web",
CONFIG_WEB_THREAD_STACK_SIZE,
low,
CONFIG_WEB_PRIORITY,
&low->web_thread,
0);
&low->web_thread);
if(err != pdPASS)
{
fprintf(stderr, "failed to create web task, error code: %d\n", err);
Expand Down

0 comments on commit 2941717

Please sign in to comment.