Skip to content

Commit b24aa69

Browse files
committed
[app-speedtest] Improved CD read test.
1 parent 3e66897 commit b24aa69

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

applications/speedtest/modules/module.c

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static void show_status_error(char *msg) {
3737
GUI_LabelSetText(self.status, msg);
3838
}
3939

40-
int test_ide_io_io(void) {
40+
int test_ide_io(void) {
4141
kos_blockdev_t bdev;
4242
uint64 st, et;
4343
uint32_t tm;
@@ -181,9 +181,17 @@ void Speedtest_Run(GUI_Widget *widget) {
181181

182182
if(FileExists(name)) {
183183
goto readtest;
184-
} else {
185-
snprintf(name, sizeof(name), "%s/1ST_READ.BIN", wname);
186-
goto readtest;
184+
}
185+
else {
186+
snprintf(name, sizeof(name), "%s/1DS_BOOT.BIN", wname);
187+
188+
if(FileExists(name)) {
189+
goto readtest;
190+
}
191+
else {
192+
snprintf(name, sizeof(name), "%s/1ST_READ.BIN", wname);
193+
goto readtest;
194+
}
187195
}
188196
}
189197

@@ -318,7 +326,7 @@ void Speedtest_Run(GUI_Widget *widget) {
318326
show_status_ok("Complete!");
319327

320328
if(is_ide) {
321-
test_ide_io_io();
329+
test_ide_io();
322330
}
323331
else if(is_sd) {
324332
test_sd_io();

0 commit comments

Comments
 (0)