🎨 Replaces delay with vTaskDelay

This commit is contained in:
Rune Harlyk
2025-09-14 19:46:42 +02:00
committed by Rune Harlyk
parent 4ea287b162
commit 0285b522f1
6 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ bool Peripherals::readGesture() {
void Peripherals::readSonar() {
#if FT_ENABLED(USE_USS)
_left_distance = _left_sonar->ping_cm();
delay(50);
vTaskDelay(50 / portTICK_PERIOD_MS);
_right_distance = _right_sonar->ping_cm();
#endif
}