mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-03-17 13:22:53 +01:00
warm the chip up
This commit is contained in:
parent
e93d9cd47c
commit
042e154a7b
@ -295,7 +295,15 @@ void self_test(void * pvParameters)
|
||||
(*GLOBAL_STATE->ASIC_functions.send_work_fn)(GLOBAL_STATE, &job);
|
||||
|
||||
// Warm up the chip
|
||||
vTaskDelay(2000 / portTICK_PERIOD_MS);
|
||||
EMC2101_set_fan_speed(0.3);
|
||||
double temp = 0;
|
||||
double target_temp = 40;
|
||||
while(temp < 40){
|
||||
vTaskDelay(500 / portTICK_PERIOD_MS);
|
||||
temp = EMC2101_get_external_temp();
|
||||
ESP_LOGI(TAG, "Warming up... %fC => %f", temp, target_temp);
|
||||
}
|
||||
EMC2101_set_fan_speed(0.6);
|
||||
|
||||
double start = esp_timer_get_time();
|
||||
double sum = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user