diff --git a/main/main.c b/main/main.c index e282f838..fd2f87b3 100644 --- a/main/main.c +++ b/main/main.c @@ -104,7 +104,7 @@ void app_main(void) } xTaskCreate(SYSTEM_task, "SYSTEM_task", 4096, (void *) &GLOBAL_STATE, 3, NULL); - + xTaskCreate(POWER_MANAGEMENT_task, "power mangement", 8192, (void *) &GLOBAL_STATE, 10, NULL); ESP_LOGI(TAG, "Welcome to the bitaxe!"); // pull the wifi credentials and hostname out of NVS @@ -150,7 +150,7 @@ void app_main(void) GLOBAL_STATE.SYSTEM_MODULE.startup_done = true; xTaskCreate(USER_INPUT_task, "user input", 8192, (void *) &GLOBAL_STATE, 5, NULL); - xTaskCreate(POWER_MANAGEMENT_task, "power mangement", 8192, (void *) &GLOBAL_STATE, 10, NULL); + if (GLOBAL_STATE.ASIC_functions.init_fn != NULL) { wifi_softap_off();