Skip to content

Commit

Permalink
Use vTaskDelay instead of delay
Browse files Browse the repository at this point in the history
  • Loading branch information
suchmememanyskill committed Jan 7, 2024
1 parent 50f4984 commit 0f5af61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CYD-Klipper/src/core/data_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ void data_loop()

void data_loop_background(void * param){
while (true){
delay(data_update_interval);
vTaskDelay(data_update_interval / portTICK_PERIOD_MS);
fetch_printer_data();
}
}
Expand Down

0 comments on commit 0f5af61

Please sign in to comment.