Skip to content

Commit

Permalink
fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
adammwest committed Oct 25, 2024
1 parent 3c8d992 commit e286d81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main/tasks/create_jobs_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ void create_jobs_task(void *pvParameters)
ESP_LOGI(TAG, "Set chip version rolls %i", version_rolls);

//calulate update to fullscan_ms as new version rolling
double new_version_percent = (double)version_rolls / (double)VERSION_SPACE
double new_version_percent = (double)version_rolls / (double)65536.0;
double prcnt_change = new_version_percent/GLOBAL_STATE->version_space_percent;
GLOBAL_STATE->ASIC_functions.asic_job_frequency_ms *= prcnt_change;
GLOBAL_STATE->asic_job_frequency_ms *= prcnt_change;
GLOBAL_STATE->version_space_percent = new_version_percent;
ESP_LOGI(TAG, "Set chip fullscan %f", GLOBAL_STATE->ASIC_functions.asic_job_frequency_ms);
ESP_LOGI(TAG, "Set chip fullscan %f", GLOBAL_STATE->asic_job_frequency_ms);

(GLOBAL_STATE->ASIC_functions.set_version_mask)(GLOBAL_STATE->version_mask);
GLOBAL_STATE->new_stratum_version_rolling_msg = false;
Expand Down

0 comments on commit e286d81

Please sign in to comment.