From 7c8f7a716ed3bb226e7455b73b4e62538f6554b5 Mon Sep 17 00:00:00 2001 From: KrahJohlito Date: Thu, 7 Nov 2024 09:07:29 +1030 Subject: [PATCH] delay --- src/opl.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/opl.c b/src/opl.c index fd6c7bf1c..be363ee32 100644 --- a/src/opl.c +++ b/src/opl.c @@ -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();