Skip to content

Commit

Permalink
Move power management task above wifi to prevent over heating
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Wilson committed Jun 8, 2024
1 parent bc365e6 commit 92924f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand Down

1 comment on commit 92924f7

@StellarStoic
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm that the fan fix worked. I had an internet outage again last night and started observing the miner. The temp was in normal ranges at all times and the fan was still spinning. (with automatic fan control switched off).
Thanks

Please sign in to comment.