Add bypass in spin(...) in case VBL not working

This commit is contained in:
Zane Kaminski 2021-03-31 07:17:53 -04:00
parent 54a61e6104
commit bb0ae40761
3 changed files with 3 additions and 2 deletions

Binary file not shown.

Binary file not shown.

5
util.c
View File

@ -40,8 +40,9 @@ void spin(uint8_t x, uint8_t y) {
// Wait specificed number of frames
for (k = 0; k < SPIN_FRAMESPERCHAR; k++) {
while (*VBL < 0);
while (*VBL >= 0);
unsigned char l;
for (l = 0; *VBL < 0 && l < 255; l++);
for (l = 0; *VBL >= 0 && l < 255; l++);
}
}
}