CheckTimer(0) always return true.

This commit is contained in:
sorgelig
2020-07-03 05:11:35 +08:00
parent 00b6675fb2
commit 2b9b53b892

View File

@@ -67,7 +67,7 @@ unsigned long GetTimer(unsigned long offset)
unsigned long CheckTimer(unsigned long time)
{
return GetTimer(0) >= time;
return (!time) || (GetTimer(0) >= time);
}
void WaitTimer(unsigned long time)