mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2024-12-11 07:51:19 +00:00
Better delay in key sample loop
This commit is contained in:
parent
3cc7abb7f4
commit
f738c8bff7
Binary file not shown.
BIN
bin/rom8M.bin
BIN
bin/rom8M.bin
Binary file not shown.
9
rdisk.c
9
rdisk.c
@ -17,9 +17,12 @@ static void RDDecodeSettings(Ptr unmountEN, Ptr mountEN, Ptr ramEN, Ptr dbgEN, P
|
||||
|
||||
// Sample R and A keys repeatedly
|
||||
char r = 0, a = 0;
|
||||
for (long i = 0; i < 100000; i++) {
|
||||
r = r | RDiskIsRPressed();
|
||||
a = a | RDiskIsAPressed();
|
||||
long tmax = TickCount() + 60;
|
||||
for (long i = 0; i < 1000000; i++) {
|
||||
r |= RDiskIsRPressed();
|
||||
a |= RDiskIsAPressed();
|
||||
if (r && a) { break; }
|
||||
if (TickCount() > tmax) { break; }
|
||||
}
|
||||
|
||||
// Decode settings: unmount (don't boot), mount (after boot), RAM disk
|
||||
|
Loading…
Reference in New Issue
Block a user