Skip to content

Commit

Permalink
Updated based on PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
eandersson committed Nov 27, 2024
1 parent d52f33e commit 5a28346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/tasks/create_jobs_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void create_jobs_task(void *pvParameters)
extranonce_2++;

if (extranonce_2 % TASK_YIELD_THRESHOLD == 0) {
vTaskDelay(1); // Minimal delay, just to yield
taskYIELD();
}
if (extranonce_2 >= MAX_EXTRANONCE_2) {
extranonce_2 = 0; // Reset to 0 if we've reached the maximum
Expand Down

0 comments on commit 5a28346

Please sign in to comment.