diff --git a/CubeGotchi.ino b/CubeGotchi.ino index a895f23..cef906f 100644 --- a/CubeGotchi.ino +++ b/CubeGotchi.ino @@ -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 }