I'm so dumb

This commit is contained in:
apio 2022-10-06 18:04:32 +02:00
parent 4a50a9e027
commit 3fd24133e9

View File

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