1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fix broken VILLASfpga node-type

Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
This commit is contained in:
Steffen Vogel 2023-01-13 11:28:53 +01:00
parent 0a8eebe41f
commit f6789e4739

View file

@ -10,6 +10,8 @@
#include <vector>
#include <string>
#include <algorithm>
#include <memory>
#include <jansson.h>
#include <villas/node_compat.hpp>
@ -31,7 +33,7 @@ using namespace villas::fpga;
using namespace villas::utils;
/* Global state */
static fpga::Card::List cards;
static std::list<std::shared_ptr<fpga::PCIeCard>> cards;
static std::map<fpga::ip::Dma, FpgaNode *> dmaMap;
static std::shared_ptr<kernel::pci::DeviceList> pciDevices;
@ -112,7 +114,7 @@ int FpgaNode::prepare()
{
auto it = cardName.empty()
? cards.begin()
: std::find_if(cards.begin(), cards.end(), [this](const fpga::Card::Ptr &c) {
: std::find_if(cards.begin(), cards.end(), [this](std::shared_ptr<fpga::PCIeCard> c) {
return c->name == cardName;
});