Skip to content

Commit

Permalink
delay
Browse files Browse the repository at this point in the history
  • Loading branch information
KrahJohlito committed Nov 6, 2024
1 parent 65c94ce commit 7c8f7a7
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/opl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1843,19 +1843,7 @@ static void miniInit(int mode)
gEnableMX4SIO = 1;
gEnableBdmHDD = 1;
bdmLoadModules();

char path[16];
int dir = -1, retries = 5;
snprintf(path, sizeof(path), "mass0:");
while (dir < 0 && retries > 0) {
dir = fileXioDopen(path);
if (dir < 0) {
delay(2);
retries--;
}
}
if (dir >= 0)
fileXioDclose(dir);
delay(6); // Wait for the device to be detected.
} else if (mode == HDD_MODE) {
hddLoadModules();
hddLoadSupportModules();
Expand Down

0 comments on commit 7c8f7a7

Please sign in to comment.