From 97c4cecaf9e06b990d319433db9c2a592822bb38 Mon Sep 17 00:00:00 2001 From: Alexandre B Date: Sun, 14 Jul 2024 01:29:41 -0400 Subject: [PATCH] . --- ESP32-C3-sm_I2C/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ESP32-C3-sm_I2C/src/main.cpp b/ESP32-C3-sm_I2C/src/main.cpp index d4a88ec1..50625aac 100644 --- a/ESP32-C3-sm_I2C/src/main.cpp +++ b/ESP32-C3-sm_I2C/src/main.cpp @@ -26,7 +26,7 @@ void TaskStatusLEDCode (void* parameters) { digitalWrite(SYS_LED_PIN, LOW); vTaskDelay(250 / portTICK_RATE_MS); digitalWrite(SYS_LED_PIN, HIGH); - vTaskDelay(750 / portTICK_RATE_MS); + vTaskDelay(pdMS_TO_TICKS(1000)); } } @@ -44,7 +44,7 @@ void TaskSensorValuesCode (void* parameters) { Serial.print(bme.readPressure() / 100.0F); Serial.println(" kPa"); Serial.println(""); - vTaskDelay(5000 / portTICK_RATE_MS); + vTaskDelay(pdMS_TO_TICKS(5000)); } }