mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-03-18 05:42:16 +01:00
Move power management task above wifi to prevent over heating
This commit is contained in:
parent
bc365e6301
commit
92924f72c6
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user