From 6eafb362a0e076c61f8bbe26ab748ae91a7e69ed Mon Sep 17 00:00:00 2001 From: johnny9 <985648+johnny9@users.noreply.github.com> Date: Mon, 22 May 2023 17:31:45 -0400 Subject: [PATCH] main: start SysTask before anything else --- main/miner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/miner.c b/main/miner.c index d935dc9c..c1b0bce8 100755 --- a/main/miner.c +++ b/main/miner.c @@ -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);