diff --git a/devices/common/pci/pcidevice.cpp b/devices/common/pci/pcidevice.cpp index 4d0db09..f83257f 100644 --- a/devices/common/pci/pcidevice.cpp +++ b/devices/common/pci/pcidevice.cpp @@ -33,7 +33,7 @@ PCIDevice::PCIDevice(std::string name) { this->pci_name = name; - this->pci_rd_stat = []() { return 0; }; + this->pci_rd_stat = [this]() { return this->status; }; this->pci_rd_cmd = [this]() { return this->command; }; this->pci_rd_bist = []() { return 0; }; this->pci_rd_lat_timer = [this]() { return this->lat_timer; };