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:
parent
0a8eebe41f
commit
f6789e4739
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue