main: start SysTask before anything else

This commit is contained in:
johnny9 2023-05-22 17:31:45 -04:00
parent b25e7b1e71
commit 6eafb362a0

View File

@ -264,14 +264,14 @@ void app_main(void)
ESP_ERROR_CHECK(esp_netif_init());
ESP_ERROR_CHECK(esp_event_loop_create_default());
xTaskCreate(SysTask, "System_Task", 4096, NULL, 10, &sysTaskHandle);
/* This helper function configures Wi-Fi or Ethernet, as selected in menuconfig.
* Read "Establishing Wi-Fi or Ethernet Connection" section in
* examples/protocols/README.md for more information about this function.
*/
ESP_ERROR_CHECK(example_connect());
xTaskCreate(SysTask, "System_Task", 4096, NULL, 10, &sysTaskHandle);
queue_init(&g_queue);
queue_init(&g_bm_queue);