From 3fd24133e964b6ac609116997cc64e4540a31b4a Mon Sep 17 00:00:00 2001 From: apio Date: Thu, 6 Oct 2022 18:04:32 +0200 Subject: [PATCH] I'm so dumb --- kernel/src/io/PCI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/io/PCI.cpp b/kernel/src/io/PCI.cpp index 94c9f4e2..f53ee653 100644 --- a/kernel/src/io/PCI.cpp +++ b/kernel/src/io/PCI.cpp @@ -112,7 +112,7 @@ void PCI::scan(void (*callback)(PCI::Device&)) // Multiple PCI host controllers for (function = 0; function < 8; function++) { - if (get_device_id(0, 0, function).vendor != 0xFFFF) break; + if (get_device_id(0, 0, function).vendor == 0xFFFF) break; bus = function; pci_scan_bus(bus, callback); }