From e286d81043f01512fa92d403f86f81ef1dc35cbb Mon Sep 17 00:00:00 2001 From: adam west Date: Fri, 25 Oct 2024 14:07:50 +0200 Subject: [PATCH] fix compile errors --- main/tasks/create_jobs_task.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/tasks/create_jobs_task.c b/main/tasks/create_jobs_task.c index c25f4e0e..f8e8e60e 100644 --- a/main/tasks/create_jobs_task.c +++ b/main/tasks/create_jobs_task.c @@ -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;