Skip to content

Commit

Permalink
warm the chip up
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Wilson committed Nov 19, 2024
1 parent e93d9cd commit 042e154
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion main/self_test/self_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 042e154

Please sign in to comment.