Testing time tracking

This commit is contained in:
Tomislav Kopić 2024-06-12 09:42:56 +00:00
parent 655220c68a
commit c59b5c1e45

View File

@ -75,15 +75,7 @@ static void hal_sleep_until(timestamp_t ts) {
if (remaining <= 0) {
break;
}
// Adjust the delay duration based on the remaining time
if (remaining >= 1000) {
delayMicroseconds(1000); // Delay for 1000 microseconds (1 millisecond)
} else if (remaining > 100) {
delayMicroseconds(100); // Delay for 100 microseconds
} else if (remaining > 0) {
delayMicroseconds(10); // Delay for 10 microseconds
}
delayMicroseconds(remaining); // Delay for remaining microseconds
}
#endif
}