From 0f5af61c8a380289e539724a705b15a96df1a0e8 Mon Sep 17 00:00:00 2001 From: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com> Date: Sun, 7 Jan 2024 21:26:37 +0100 Subject: [PATCH] Use vTaskDelay instead of delay --- CYD-Klipper/src/core/data_setup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CYD-Klipper/src/core/data_setup.cpp b/CYD-Klipper/src/core/data_setup.cpp index 6241f60..a2e7657 100644 --- a/CYD-Klipper/src/core/data_setup.cpp +++ b/CYD-Klipper/src/core/data_setup.cpp @@ -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(); } }