Skip to content

Commit 3e4ab29

Browse files
committed
Skip calling the delay method on negative input
1 parent 0cc96ad commit 3e4ab29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BlueSCSI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,8 @@ void check_and_apply_sdio_delay() {
559559
long add_sdio_delay = ini_getl("SDIO", "AddClockDelay", 0, CONFIGFILE);
560560
if (add_sdio_delay) {
561561
if (add_sdio_delay < 0) {
562-
add_sdio_delay = 0;
563562
log("---- WARNING: Negative numbers are not valid for AddClockDelay. Setting value to 0");
563+
return;
564564
}
565565
if (add_sdio_delay > 2) {
566566
add_sdio_delay = 2;

0 commit comments

Comments
 (0)