Move power management task above wifi to prevent over heating

This commit is contained in:
Benjamin Wilson 2024-06-08 10:03:29 -04:00
parent bc365e6301
commit 92924f72c6

View File

@ -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();