Using normal wait in LinkWireless

This commit is contained in:
Rodrigo Alfonso
2024-01-06 07:25:45 -03:00
parent 732776129a
commit 8df5c69bf0
2 changed files with 3 additions and 3 deletions

View File

@@ -462,7 +462,7 @@ void wait(u32 verticalLines) {
while (count < verticalLines) {
if (REG_VCOUNT != vCount) {
count += max((int)REG_VCOUNT - (int)vCount, 0);
count++;
vCount = REG_VCOUNT;
}
};

View File

@@ -1612,7 +1612,7 @@ class LinkWireless {
bool timeout(u32 limit, u32& lines, u32& vCount) {
if (REG_VCOUNT != vCount) {
lines += std::max((int)REG_VCOUNT - (int)vCount, 0);
lines += max((int)REG_VCOUNT - (int)vCount, 0);
vCount = REG_VCOUNT;
}
@@ -1625,7 +1625,7 @@ class LinkWireless {
while (count < verticalLines) {
if (REG_VCOUNT != vCount) {
count += std::max((int)REG_VCOUNT - (int)vCount, 0);
count++;
vCount = REG_VCOUNT;
}
};