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); }