device_probe.py: Fix missing pci check

This commit is contained in:
Mykola Grymalyuk
2023-03-13 11:44:05 -06:00
parent d5ffa9a8cf
commit afd1b5d2a7

View File

@@ -52,6 +52,7 @@ class PCIDevice:
if type(ioname) is bytes: if type(ioname) is bytes:
ioname = ioname.strip(b"\0").decode() ioname = ioname.strip(b"\0").decode()
if ioname.startswith("pci"):
vendor_id_unspoofed, device_id_unspoofed = (int(i, 16) for i in ioname[3:].split(",")) vendor_id_unspoofed, device_id_unspoofed = (int(i, 16) for i in ioname[3:].split(","))
if anti_spoof: if anti_spoof:
vendor_id = vendor_id_unspoofed vendor_id = vendor_id_unspoofed