BootAnimation: fix bug to delay the appropriate amount of time per frame

Change-Id: I300b67a97a9a685cec59df12d8d605c2b0b49180
This commit is contained in:
Travis Geiselbrecht
2012-04-24 14:14:55 -07:00
parent 5c84720322
commit f4b6628e50

View File

@@ -509,7 +509,7 @@ bool BootAnimation::movie()
nsecs_t now = systemTime();
nsecs_t delay = frameDuration - (now - lastFrame);
lastFrame = now;
long wait = ns2us(frameDuration);
long wait = ns2us(delay);
if (wait > 0)
usleep(wait);
}