/// © MiroZ 2024 #include #include #include "bootloader_random.h" #include #include #include #include "TaskFactory.h" #include "esp_task_wdt.h" #include "App.h" static const char * TAG = "main"; extern "C" void app_main(void) { bootloader_random_enable(); initArduino(); ESP_ERROR_CHECK(esp_task_wdt_init(15, false)); ESP_LOGW(TAG, "Starting the app..."); App * app = new App(); app->init(); app->start(); ESP_LOGI(TAG, "stack high water mark %d", TaskFactory::getStackHighWaterMark()); // we're no longer needed TaskFactory::deleteTask(); }