     PRIORITY_CRITICAL = 3
 };
 
-void setup()
+static void initTask(void* pvParameters)
 {
     // Initialize logging
     Serial.begin(115200);

 *
 * The MLC2 application for the ESP32, using the Arduino core.
 */

#include "LoggingTask.h"


    IPatch* pPatch(gs_pConcert->getPatch(gs_pConcert->addPatch()));
    pPatch->setName("test");
    pPatch->activate();

    // Delete ourselves.
    vTaskDelete(NULL);
}

void setup()
{
    // Start the init task, which will initialize everything and delete itself.
    xTaskCreate(initTask,
                "init",
                c_defaultStackSize,
                nullptr,            // no parameters
                PRIORITY_CRITICAL,
                nullptr);           // no need to store task handle

    xPortStartScheduler();
}

void loop()
{
    // Nothing to do, leave everything to the OS.
}


