diff --git a/Kernel/Storage/IDEChannel.cpp b/Kernel/Storage/IDEChannel.cpp index 9c7cb58fcd..91403b26ae 100644 --- a/Kernel/Storage/IDEChannel.cpp +++ b/Kernel/Storage/IDEChannel.cpp @@ -269,7 +269,7 @@ bool IDEChannel::wait_until_not_busy(bool slave, size_t milliseconds_timeout) IO::delay(1000); time_elapsed++; } - return time_elapsed != milliseconds_timeout; + return time_elapsed <= milliseconds_timeout; } bool IDEChannel::wait_until_not_busy(size_t milliseconds_timeout) @@ -279,7 +279,7 @@ bool IDEChannel::wait_until_not_busy(size_t milliseconds_timeout) IO::delay(1000); time_elapsed++; } - return time_elapsed != milliseconds_timeout; + return time_elapsed <= milliseconds_timeout; } String IDEChannel::channel_type_string() const