ESP32 Pin loopTask to CORE 1 (#11669)

This commit is contained in:
Guillermo Ruffino
2025-11-02 19:11:02 -03:00
committed by GitHub
parent 425c88ee94
commit 338190abec

View File

@@ -96,7 +96,11 @@ void loop_task(void *pv_params) {
extern "C" void app_main() {
esp32::setup_preferences();
#if CONFIG_FREERTOS_UNICORE
xTaskCreate(loop_task, "loopTask", 8192, nullptr, 1, &loop_task_handle);
#else
xTaskCreatePinnedToCore(loop_task, "loopTask", 8192, nullptr, 1, &loop_task_handle, 1);
#endif
}
#endif // USE_ESP_IDF